class documentation
class TextWrapper(textwrap.TextWrapper): (source)
Custom subclass that uses a different word separator regex.
Class Variable | wordsep |
Undocumented |
Method | _break |
_break_word(word : string, space_left : int) -> (string, string) |
Method | _handle |
_handle_long_word(chunks : [string], cur_line : [string], cur_len : int, width : int) |
Method | _split |
_split(text : string) -> [string] |
Method | _wrap |
_wrap_chunks(chunks : [string]) -> [string] |