Zahid
Zahid

Reputation: 1830

How to wrap text of column header when using table_print gem

I have few large columns names in my table which are being truncated and not fully shown. they are being show as AVERAGE_COMPLETED_TASKS_PER_... whereas I would like to wrap the text to next line and not get truncated.

table_print

Upvotes: 0

Views: 151

Answers (1)

Muhammad Ali
Muhammad Ali

Reputation: 63

Default max width is 30 characters. You need to change it. More info here. In console you have to write this:

tp.max_width= 200

Upvotes: 1

Related Questions