Definition TextWrap.qm.dox.h:164
list wrap(string text)
Wrap a single paragraph of text, returning a list of wrapped lines.
_handle_long_word(reference reversed_chunks, reference cur_line, int cur_len, int width)
list _wrap_chunks(list chunks)
string fill(string text)
Fill a single paragraph of text, returning a new string.
string _munge_whitespace(string text)
_fix_sentence_endings(reference chunks)
Main namespace for all public symbols in the TextWrap module.
Definition TextWrap.qm.dox.h:68
string dedent(string text)
Remove any common leading whitespace from every line in 'text'.
list wrap(string text, int width=70, *hash opts)
Wrap a single paragraph of text, returning a list of wrapped lines.
string indent(string text, string prefix, *code predicate)
Adds 'prefix' to the beginning of selected lines in 'text'.
string shorten(string text, int width, *hash opts)
Collapse and truncate the given text to fit in the given width.
string fill(string text, int width=70, *hash opts)
Fill a single paragraph of text, returning a new string.
string expandtabs(string text, int tabsize=8)
Return a copy of the string where all tab characters are expanded using spaces.