From 2a8e14eff31459e87721b45a4af6ae446da63708 Mon Sep 17 00:00:00 2001 From: Jochen Kupperschmidt Date: Sun, 7 Feb 2016 23:10:45 +0100 Subject: [PATCH] Fixed indentation in "Data Export Functionality" list. Nesting of code blocks in reStructuredText (unlike some other markup formats) works so great, so let's embrace that ;) --- README.rst | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/README.rst b/README.rst index bdbe733..52c8a88 100644 --- a/README.rst +++ b/README.rst @@ -74,35 +74,34 @@ Excellent for sharing data with friends, or generating reports. - CSV -.. code:: pycon + .. code:: pycon - >>> print rows.dataset.csv - username,active,name,user_email,timezone - model-t,True,Henry Ford,model-t@gmail.com,2016-02-06 22:28:23.894202 - ... + >>> print rows.dataset.csv + username,active,name,user_email,timezone + model-t,True,Henry Ford,model-t@gmail.com,2016-02-06 22:28:23.894202 + ... - YAML -.. code:: python + .. code:: python - >>> print rows.dataset.yaml - - {active: true, name: Henry Ford, timezone: '2016-02-06 22:28:23.894202', user_email: model-t@gmail.com, username: model-t} - ... + >>> print rows.dataset.yaml + - {active: true, name: Henry Ford, timezone: '2016-02-06 22:28:23.894202', user_email: model-t@gmail.com, username: model-t} + ... - JSON -.. code:: python - - >>> print rows.dataset.json - [{"username": "model-t", "active": true, "name": "Henry Ford", "user_email": "model-t@gmail.com", "timezone": "2016-02-06 22:28:23.894202"}, ...] + .. code:: python + >>> print rows.dataset.json + [{"username": "model-t", "active": true, "name": "Henry Ford", "user_email": "model-t@gmail.com", "timezone": "2016-02-06 22:28:23.894202"}, ...] - Excel (xls, xlsx) -.. code:: python + .. code:: python - with open('report.xls', 'wb') as f: - f.write(rows.dataset.xls) + with open('report.xls', 'wb') as f: + f.write(rows.dataset.xls) You get the point. Of course, all other features of Tablib are also available, so you can sort results, add/remove columns/rows, remove