Class to wrap line breaks.
More...
|
| __init__ (self, eol='\n', nIndent=0) |
| Constructor.
|
| clear (self) |
| Clear mutable attributes (column and text).
|
| append (self, string) |
| Add contents of string to wrapped text.
|
| __str__ (self) |
| Return string containing wrapped text (self.text).
|
| __repr__ (self) |
| Return string containing wrapped text (self.text).
|
Class to wrap line breaks.
Definition at line 12 of file text.py.
◆ __init__()
pscfpp.text.Wrapper.__init__ |
( |
| self, |
|
|
| eol = '\n', |
|
|
| nIndent = 0 ) |
Constructor.
Data attributes:
- eol : end-of-line character
- nIndent : number of spaces preceding each line
- column : current column index (cursor)
- limit : maximum number of columns (78 by default)
- text : string containing resuling wrapped text
- Parameters
-
eol | end-of-line character |
nIndent | number of space preceding each line |
Definition at line 28 of file text.py.
References column, eol, limit, nIndent, and text.
◆ clear()
pscfpp.text.Wrapper.clear |
( |
| self | ) |
|
Clear mutable attributes (column and text).
Definition at line 38 of file text.py.
References column, and text.
◆ append()
pscfpp.text.Wrapper.append |
( |
| self, |
|
|
| string ) |
◆ __str__()
pscfpp.text.Wrapper.__str__ |
( |
| self | ) |
|
Return string containing wrapped text (self.text).
Definition at line 64 of file text.py.
References text.
◆ __repr__()
pscfpp.text.Wrapper.__repr__ |
( |
| self | ) |
|
Return string containing wrapped text (self.text).
Definition at line 70 of file text.py.
References text.
The documentation for this class was generated from the following file: