@@ -218,7 +218,7 @@ extensions::
218
218
219
219
``presto `` is like tables formatted by Presto cli::
220
220
221
- >>> print(tabulate.tabulate( ))
221
+ >>> print(tabulate(table, headers, tablefmt="presto" ))
222
222
item | qty
223
223
--------+-------
224
224
spam | 42
@@ -227,7 +227,7 @@ extensions::
227
227
228
228
``psql `` is like tables formatted by Postgres' psql cli::
229
229
230
- >>> print(tabulate.tabulate( ))
230
+ >>> print(tabulate(table, headers, tablefmt="psql" ))
231
231
+--------+-------+
232
232
| item | qty |
233
233
|--------+-------|
@@ -295,7 +295,7 @@ other MediaWiki-based sites::
295
295
``moinmoin `` format produces a table markup used in `MoinMoin `_
296
296
wikis::
297
297
298
- >>> print(tabulate(d, headers,tablefmt="moinmoin"))
298
+ >>> print(tabulate(table, headers, tablefmt="moinmoin"))
299
299
|| ''' item ''' || ''' quantity ''' ||
300
300
|| spam || 41.999 ||
301
301
|| eggs || 451 ||
@@ -304,15 +304,15 @@ wikis::
304
304
``youtrack `` format produces a table markup used in Youtrack
305
305
tickets::
306
306
307
- >>> print(tabulate(d, headers,tablefmt="youtrack"))
307
+ >>> print(tabulate(table, headers, tablefmt="youtrack"))
308
308
|| item || quantity ||
309
309
| spam | 41.999 |
310
310
| eggs | 451 |
311
311
| bacon | |
312
312
313
313
``textile `` format produces a table markup used in `Textile `_ format::
314
314
315
- >>> print(tabulate(table, headers, tablefmt=' textile' ))
315
+ >>> print(tabulate(table, headers, tablefmt=" textile" ))
316
316
|_. item |_. qty |
317
317
|<. spam |>. 42 |
318
318
|<. eggs |>. 451 |
0 commit comments