Model text as structured collection of paragraphs.
Structure is implied by the indentation level.
This class is intended as a base classes that do actual text
output formatting.
Methods
|
|
__init__
__str__
|
|
__init__
|
__init__ (
self,
aStructuredString,
level=0,
paragraph_divider=regex.compile( '\(\n *\)+\n' ),
)
Convert a structured text string into a structured text object.
Arguments:
- aStructuredString
The string to be parsed.
- level
The level of top level headings to be created.
|
|
__str__
|
__str__ ( self )
|
|