Skip to content

Commit

Permalink
Fix alignments.
Browse files Browse the repository at this point in the history
  • Loading branch information
kdeldycke committed Apr 4, 2023
1 parent a64bc74 commit 0b32778
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,11 +218,11 @@ format uses colons to indicate column alignment:

```pycon
>>> print(tabulate(table, headers, tablefmt="github"))
| item | qty |
| :----- | ----: |
| spam | 42 |
| eggs | 451 |
| bacon | 0 |
| item | qty |
| :------ | ----: |
| spam | 42 |
| eggs | 451 |
| bacon | 0 |
```

`grid` is like tables formatted by Emacs'
Expand Down
8 changes: 4 additions & 4 deletions test/test_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,10 +428,10 @@ def test_github():
"Output: github with headers"
expected = "\n".join(
[
"| strings | numbers |",
"| :-------- | --------: |",
"| spam | 41.9999 |",
"| eggs | 451 |",
"| strings | numbers |",
"| :---------- | ----------: |",
"| spam | 41.9999 |",
"| eggs | 451 |",
]
)
result = tabulate(_test_table, _test_table_headers, tablefmt="github")
Expand Down

0 comments on commit 0b32778

Please sign in to comment.