PyDocs

Text Processing Services

textwrap

Text wrapping and filling.
Symbols in textwrap

d

dedent
Remove any common leading whitespace from every line in `text`.

f

fill
Fill a single paragraph of text, returning a new string.

i

indent
Adds 'prefix' to the beginning of selected lines in 'text'.

s

shorten
Collapse and truncate the given text to fit in the given width.

t

TextWrapper
Object for wrapping/filling text.

w

wrap
Wrap a single paragraph of text, returning a list of wrapped lines.