diff --git a/docs/install.rst b/docs/install.rst index 67aa37d..b42fe07 100644 --- a/docs/install.rst +++ b/docs/install.rst @@ -26,7 +26,7 @@ Of course, the recommended way to install Tablib is with `pip `. +Now, go :ref:`install Tablib `. diff --git a/docs/tutorial.rst b/docs/tutorial.rst index 4189269..a9e46b4 100644 --- a/docs/tutorial.rst +++ b/docs/tutorial.rst @@ -200,7 +200,7 @@ Delete a range of rows:: Advanced Usage ============== -This part of the documentation services to give you an idea that are otherwise hard to extract from the :ref:`API Documentation ` +This part of the documentation services to give you an idea that are otherwise hard to extract from the :ref:`API Documentation `. And now for something completely different. @@ -300,11 +300,11 @@ It's that simple. The original :class:`Dataset` is untouched. Open an Excel Workbook and read first sheet ------------------------------------------- -To open an Excel 2007 and later workbook with a single sheet (or a workbook with multiple sheets but you just want the first sheet), use the following: +Open an Excel 2007 and later workbook with a single sheet (or a workbook with multiple sheets but you just want the first sheet). :: -data = tablib.Dataset() -data.xlsx = open('my_excel_file.xlsx', 'rb').read() -print(data) + data = tablib.Dataset() + data.xlsx = open('my_excel_file.xlsx', 'rb').read() + print(data) Excel Workbook With Multiple Sheets ------------------------------------ diff --git a/src/tablib/core.py b/src/tablib/core.py index 65dd901..0c9131d 100644 --- a/src/tablib/core.py +++ b/src/tablib/core.py @@ -119,7 +119,7 @@ class Dataset(object): Setting columns is similar. The column data length must equal the - current height of the data and headers must be set :: + current height of the data and headers must be set. :: data = tablib.Dataset() data.headers = ('first_name', 'last_name') @@ -593,7 +593,7 @@ class Dataset(object): """A HTML table representation of the :class:`Dataset` object. If headers have been set, they will be used as table headers. - ..notice:: This method can be used for export only. + .. notice:: This method can be used for export only. """ pass