tablewriter icon indicating copy to clipboard operation
tablewriter copied to clipboard

Add SetRowWidth function

Open 0x9ef opened this issue 6 years ago • 5 comments

SetRowWidth sets width of row, if width more then maximal (64) or less then minimal (12) -> sets default row width (32)

0x9ef avatar Jan 23 '19 18:01 0x9ef

What basis of 8 or 64?

mattn avatar Mar 15 '19 07:03 mattn

@0x9ef can you explain more ?

olekukonko avatar Jun 07 '19 07:06 olekukonko

@olekukonko simply function for setting preferred row width without modifying global constants. In many situation, based MAX_ROW_WIDTH = 30 too small, i think, it would be easier to call SetRowWidth(sz) without modifying global constants in table.go

0x9ef avatar Jun 07 '19 14:06 0x9ef

@0x9ef thanks for the explanation, can you add some test and example.
@mattn what do you think ?

olekukonko avatar Jun 09 '19 06:06 olekukonko

@mattn @olekukonko do you have any updates on this feature? Could be very good to have it.

mchernyakov avatar Jan 30 '23 10:01 mchernyakov