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

SEPARATING_LINE does not work with "outline" formats #322

Open
GuidoBartoli opened this issue Apr 17, 2024 · 1 comment
Open

SEPARATING_LINE does not work with "outline" formats #322

GuidoBartoli opened this issue Apr 17, 2024 · 1 comment

Comments

@GuidoBartoli
Copy link

The SEPARATING_LINE macro works only with the default style.

This is the sample data:

table = [
    ["A", 1, 2],
    ["B", 3, 4],
    SEPARATING_LINE,
    ["C", 5, 6],
    ["D", 7, 8],
]

Printing with the default style produces the correct output:

print(tabulate(table))

-  -  -
A  1  2
B  3  4
-  -  -
C  5  6
D  7  8
-  -  -

Using the outline format gives wrong output instead:

print(tabulate(table, tablefmt="outline"))

+---+---+---+
| A | 1 | 2 |
| B | 3 | 4 |
| � |
| C | 5 | 6 |
| D | 7 | 8 |
+---+---+---+
@zellyn
Copy link

zellyn commented May 9, 2024

It also doesn't work with html format. It seems to cause the table to end.

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

2 participants