Class
docutils.parsers.rst.tableparser.SimpleTableParser

Parse a simple table using parse().

Here's an example of a simple table:

=====  =====
col 1  col 2
=====  =====
1      Second column of row 1.
2      Second column of row 2.
       Second line of paragraph.
3      - Second column of row 3.

       - Second item in bullet
         list (row 3, column 2).
4 is a span
------------
5
=====  =====

Top and bottom borders use '=', column span underlines use '-', column separation is indicated with spaces.

Passing the above table to the parse() method will result in the following data structure, whose interpretation is the same as for GridTableParser:

([5, 25],
 [[(0, 0, 1, ['col 1']),
   (0, 0, 1, ['col 2'])]],
 [[(0, 0, 3, ['1']),
   (0, 0, 3, ['Second column of row 1.'])],
  [(0, 0, 4, ['2']),
   (0, 0, 4, ['Second column of row 2.',
              'Second line of paragraph.'])],
  [(0, 0, 6, ['3']),
   (0, 0, 6, ['- Second column of row 3.',
              '',
              '- Second item in bullet',
              '  list (row 3, column 2).'])],
  [(0, 1, 10, ['4 is a span'])],
  [(0, 0, 12, ['5']),
   (0, 0, 12, [''])]])

Base classes

Implemented Interfaces

There are no implemented interfaces.

Attributes/Properties

Methods

Known Subclasses

There are no known subclasses.