string fill(string text, int width=70, *hash opts)
Fill a single paragraph of text, returning a new string.
list wrap(string text, int width=70, *hash opts)
Wrap a single paragraph of text, returning a list of wrapped lines.
Definition: TextWrap.qm.dox.h:137
string dedent(string text)
Remove any common leading whitespace from every line in 'text'.
string indent(string text, string prefix, *code predicate)
Adds 'prefix' to the beginning of selected lines in 'text'.
main namespace for all public symbols in the TextWrap module
Definition: TextWrap.qm.dox.h:67
string shorten(string text, int width, *hash opts)
Collapse and truncate the given text to fit in the given width.