prettytable icon indicating copy to clipboard operation
prettytable copied to clipboard

Option to add divider above row instead of below

Open userbox020 opened this issue 2 years ago • 2 comments

thanks

userbox020 avatar Oct 24 '23 19:10 userbox020

I think this would be useful.

Right now, table.add_row() has a divider=True attribute to add a one below.

Perhaps, instead of adding something like divider_above=True, we add something like plural dividers="above" / "below" / "both"? (Or an enumeration.)

And perhaps deprecate the existing divider?

hugovk avatar Jan 23 '25 16:01 hugovk

Although perhaps this is not so important now that https://github.com/prettytable/prettytable/issues/242 / https://github.com/prettytable/prettytable/pull/357 have added an add_divider() method to PrettyTable 3.14?

hugovk avatar Jan 31 '25 14:01 hugovk