Public Member Functions | |
__init__ (self) | |
addTextToElement (self, odfElement, s) | |
Process an input string, inserting <text:tab> elements for '\t', <text:line-break> elements for ' ', and <text:s> elements for runs of more than one blank. | |
Public Attributes | |
textBuffer | |
spaceCount | |
Protected Member Functions | |
_emitTextBuffer (self, odfElement) | |
Creates a Text Node whose contents are the current textBuffer. | |
_emitSpaces (self, odfElement) | |
Creates a <text:s> element for the current spaceCount. | |
Definition at line 34 of file teletype.py.
odf.teletype.WhitespaceText.__init__ | ( | self | ) |
Definition at line 36 of file teletype.py.
|
protected |
Creates a <text:s> element for the current spaceCount.
Side sets spaceCount back to zero
Definition at line 101 of file teletype.py.
|
protected |
Creates a Text Node whose contents are the current textBuffer.
Side clears the text buffer.
Definition at line 90 of file teletype.py.
odf.teletype.WhitespaceText.addTextToElement | ( | self, | |
odfElement, | |||
s | |||
) |
Process an input string, inserting <text:tab> elements for '\t', <text:line-break> elements for '
', and <text:s> elements for runs of more than one blank.
These will be added to the given element.
Definition at line 46 of file teletype.py.
odf.teletype.WhitespaceText.spaceCount |
Definition at line 38 of file teletype.py.
odf.teletype.WhitespaceText.textBuffer |
Definition at line 37 of file teletype.py.