python-tabulate icon indicating copy to clipboard operation
python-tabulate copied to clipboard

adds new colwidth arg allowing fixed width cols

Open cabutchei opened this issue 2 years ago • 0 comments

This new argument in the tabulate function could be very useful for printing tables with consistent width. Since the program seems to ignore maxcolwidths whenever there are numeric strings of larger length than its value, I found it reasonable to be consistent with this and set colwidth to match the length of the longest numeric string whenever it happens to be shorter than it value. This preserves both the original behavior of the program and the width consistency across columns.

cabutchei avatar Apr 08 '23 01:04 cabutchei