We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It appears that tabulate wants at least 3 spaces between a column delimiter and the header text (in the opposite direction indicated by colalign):
colalign
print(tabulate([["First name", "Last name"], ["John", "Doe"]], headers="firstrow", tablefmt="rounded_outline", colalign=("left", "right")))
╭──────────────┬─────────────╮ │ First name │ Last name │ ├──────────────┼─────────────┤ │ John │ Doe │ ╰──────────────┴─────────────╯
I wish I could customize this, particularly for tables with many columns, and allow, say 1 space of padding instead of 3:
print(tabulate([["First name", "Last name"], ["John", "Doe"]], headers="firstrow", tablefmt="rounded_outline", colalign=("left", "right"), min_header_padding=1))
╭────────────┬───────────╮ │ First name │ Last name │ ├────────────┼───────────┤ │ John │ Doe │ ╰────────────┴───────────╯
It would make sense even to allow this on both sides of the header entry:
print(tabulate([["First name", "Last name"], ["John", "Doe"]], headers="firstrow", tablefmt="rounded_outline", colalign=("left", "right"), min_header_left_padding=0, min_header_right_padding=0))
╭──────────┬─────────╮ │First name│Last name│ ├──────────┼─────────┤ │ John │ Doe │ ╰──────────┴─────────╯
The text was updated successfully, but these errors were encountered:
No branches or pull requests
It appears that tabulate wants at least 3 spaces between a column delimiter and the header text (in the opposite direction indicated by
colalign
):I wish I could customize this, particularly for tables with many columns, and allow, say 1 space of padding instead of 3:
It would make sense even to allow this on both sides of the header entry:
The text was updated successfully, but these errors were encountered: