Skip to content

Commit 0b32778

Browse files
committed
Fix alignments.
1 parent a64bc74 commit 0b32778

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -218,11 +218,11 @@ format uses colons to indicate column alignment:
218218

219219
```pycon
220220
>>> print(tabulate(table, headers, tablefmt="github"))
221-
| item | qty |
222-
| :----- | ----: |
223-
| spam | 42 |
224-
| eggs | 451 |
225-
| bacon | 0 |
221+
| item | qty |
222+
| :------ | ----: |
223+
| spam | 42 |
224+
| eggs | 451 |
225+
| bacon | 0 |
226226
```
227227

228228
`grid` is like tables formatted by Emacs'

test/test_output.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -428,10 +428,10 @@ def test_github():
428428
"Output: github with headers"
429429
expected = "\n".join(
430430
[
431-
"| strings | numbers |",
432-
"| :-------- | --------: |",
433-
"| spam | 41.9999 |",
434-
"| eggs | 451 |",
431+
"| strings | numbers |",
432+
"| :---------- | ----------: |",
433+
"| spam | 41.9999 |",
434+
"| eggs | 451 |",
435435
]
436436
)
437437
result = tabulate(_test_table, _test_table_headers, tablefmt="github")

0 commit comments

Comments
 (0)