Skip to content

Commit 4d4e927

Browse files
committed
README: Fix incorrect examples and format
1 parent 5e2ee10 commit 4d4e927

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ extensions::
218218

219219
``presto`` is like tables formatted by Presto cli::
220220

221-
>>> print(tabulate.tabulate())
221+
>>> print(tabulate(table, headers, tablefmt="presto"))
222222
item | qty
223223
--------+-------
224224
spam | 42
@@ -227,7 +227,7 @@ extensions::
227227

228228
``psql`` is like tables formatted by Postgres' psql cli::
229229

230-
>>> print(tabulate.tabulate())
230+
>>> print(tabulate(table, headers, tablefmt="psql"))
231231
+--------+-------+
232232
| item | qty |
233233
|--------+-------|
@@ -295,7 +295,7 @@ other MediaWiki-based sites::
295295
``moinmoin`` format produces a table markup used in `MoinMoin`_
296296
wikis::
297297

298-
>>> print(tabulate(d,headers,tablefmt="moinmoin"))
298+
>>> print(tabulate(table, headers, tablefmt="moinmoin"))
299299
|| ''' item ''' || ''' quantity ''' ||
300300
|| spam || 41.999 ||
301301
|| eggs || 451 ||
@@ -304,15 +304,15 @@ wikis::
304304
``youtrack`` format produces a table markup used in Youtrack
305305
tickets::
306306

307-
>>> print(tabulate(d,headers,tablefmt="youtrack"))
307+
>>> print(tabulate(table, headers, tablefmt="youtrack"))
308308
|| item || quantity ||
309309
| spam | 41.999 |
310310
| eggs | 451 |
311311
| bacon | |
312312

313313
``textile`` format produces a table markup used in `Textile`_ format::
314314

315-
>>> print(tabulate(table, headers, tablefmt='textile'))
315+
>>> print(tabulate(table, headers, tablefmt="textile"))
316316
|_. item |_. qty |
317317
|<. spam |>. 42 |
318318
|<. eggs |>. 451 |

0 commit comments

Comments
 (0)