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

Add "flow" tablefmt which doesn't do any formatting

Open elric1 opened this issue 1 year ago • 1 comments

This will help for programs that may have an option to simply output the data without any formatting at all. This is done by first providing defaults to TableFormat. We do this so that fields can be added without breaking the ABI. We then add two fields "align_columns" and "elide_empty_columns". The former stops padding things out to align them and this is also useful for, e.g. HTML. The latter just removes columns where all of the entries are empty. We use those two to define a TableFormat "flow" which just outputs the data joined by " " with no alignment or other formatting.

elric1 avatar Mar 03 '24 22:03 elric1

I'm not sure what is the use case for this feature. And for occasional user it's not a big deal to have their own TableFormat outside of the module.

astanin avatar Sep 26 '24 17:09 astanin