textwrap

Text wrapping and filling.

Functions

dedent(text) Remove any common leading whitespace from every line in text.
fill(text[, width]) Fill a single paragraph of text, returning a new string.
wrap(text[, width]) Wrap a single paragraph of text, returning a list of wrapped lines.

Classes

TextWrapper([width, initial_indent, ...]) Object for wrapping/filling text.