class documentation

class TableProcessor(BlockProcessor): (source)

View In Hierarchy

Process Tables.

Method __init__ Undocumented
Method run Parse a table block and build table.
Method test Ensure first two rows (column header and separator row) are valid table rows.
Constant RE_CODE_PIPES Undocumented
Constant RE_END_BORDER Undocumented
Instance Variable border Undocumented
Instance Variable config Undocumented
Instance Variable separator Undocumented
Method _build_empty_row Build an empty row.
Method _build_row Given a row of text, build table cells.
Method _split split a row of text with some code into a list of cells.
Method _split_row split a row of text into list of cells.

Inherited from BlockProcessor:

Method detab Remove a tab from the front of each line of the given text.
Method lastChild Return the last child of an etree element.
Method looseDetab Remove a tab from front of lines but allowing dedented lines.
Instance Variable parser Undocumented
Instance Variable tab_length Undocumented
def __init__(self, parser, config): (source)
def run(self, parent, blocks): (source)

Parse a table block and build table.

def test(self, parent, block): (source)

Ensure first two rows (column header and separator row) are valid table rows. Keep border check and separator row do avoid repeating the work.

RE_CODE_PIPES = (source)

Undocumented

Value
re.compile(r'(?:(\\\\)|(\\`+)|(`+)|(\\\|)|(\|))')
RE_END_BORDER = (source)

Undocumented

Value
re.compile(r'(?<!\\)(?:\\\\)*\|$')
border = (source)

Undocumented

config = (source)

Undocumented

separator = (source)

Undocumented

def _build_empty_row(self, parent, align): (source)

Build an empty row.

def _build_row(self, row, parent, align): (source)

Given a row of text, build table cells.

def _split(self, row): (source)

split a row of text with some code into a list of cells.

def _split_row(self, row): (source)

split a row of text into list of cells.