File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -218,11 +218,11 @@ format uses colons to indicate column alignment:
218
218
219
219
``` pycon
220
220
>>> 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 |
226
226
```
227
227
228
228
` grid ` is like tables formatted by Emacs'
Original file line number Diff line number Diff line change @@ -428,10 +428,10 @@ def test_github():
428
428
"Output: github with headers"
429
429
expected = "\n " .join (
430
430
[
431
- "| strings | numbers |" ,
432
- "| :-------- | --------: |" ,
433
- "| spam | 41.9999 |" ,
434
- "| eggs | 451 |" ,
431
+ "| strings | numbers |" ,
432
+ "| :---------- | -- --------: |" ,
433
+ "| spam | 41.9999 |" ,
434
+ "| eggs | 451 |" ,
435
435
]
436
436
)
437
437
result = tabulate (_test_table , _test_table_headers , tablefmt = "github" )
You can’t perform that action at this time.
0 commit comments