PyDocs

Nav

Text Processing Services

TextWrapper.wrap

  • TextWrapper.wrap(text)
wrap(text : string) -> [string]

Reformat the single paragraph in 'text' so it fits in lines of
no more than 'self.width' columns, and return a list of wrapped
lines.  Tabs in 'text' are expanded with string.expandtabs(),
and all other whitespace characters (including newline) are
converted to space.
0 Examples
No examples for textwrap/TextWrapper.wrap.
See Also
No see-alsos for textwrap/TextWrapper.wrap
0 Notes
No notes for TextWrapper.wrap