Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: column separators #357

Open
njourdane opened this issue Jan 14, 2025 · 0 comments
Open

Feature request: column separators #357

njourdane opened this issue Jan 14, 2025 · 0 comments

Comments

@njourdane
Copy link

njourdane commented Jan 14, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant