Skip to content

Feature request: column separators #357

Open
@njourdane

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions