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

Feature request: column separators

Open lypwig opened this issue 11 months ago • 0 comments

It could be practical to have column separators.

Syntax proposal:

print(tabulate(table, headers=[["item", "qty", "foo"], ["bar", "baz"]]))

Could give, using fancy_outline format:

╒════════╤═══════╤═════╦═════╤═════╕
│ item   │ qty   │ foo ║ bar │ baz │
╞════════╪═══════╪═════╬═════╪═════╡
│ spam   │ 42    │ a   ║ d   │ g   │
│ eggs   │ 451   │ b   ║ e   │ h   │
│ bacon  │ 0     │ c   ║ f   │ i   │
╘════════╧═══════╧═════╩═════╧═════╛

Related to #275

lypwig avatar Jan 14 '25 09:01 lypwig