Primary access to kleptic text parsing and serialization functions.
from fault.text import io as txt
src = "[ Section ]\nParagraph.\n"
element_tree = txt.structure_chapter_text(src)
assert src == ''.join(txt.sequence_chapter_element(element_tree))
format
document0
render0
types0
structure_paragraph_element250%types.Paragraph
structure_paragraph_element(element)
Create a fault.text.types.Paragraph instance from the given raw paragraph element.
TreeOperations0
TreeOperations = document.Tree()
structure_chapter_lines0
structure_chapter_lines(lines)
Parse kleptic text lines into an element tree.
structure_chapter_text0
structure_chapter_text(source)
Parse kleptic text source into an element tree.
sequence_chapter_element0
sequence_chapter_element = render.chapter