Module textwrap

Module textwrap 

Source
Expand description

Text wrapping functions

These functions are used to wrap text for use in a changelog. The main function is textwrap, which takes a string and wraps it to a specified width, without breaking in between “Closes: #XXXXXX” fragments.

Enums§

Error
Text wrapping error

Constants§

DEFAULT_WIDTH
Default width for text wrapping
INITIAL_INDENT
Initial indent for text wrapping

Functions§

rewrap_changesDeprecated
Rewrap lines from an iterator of changes
textwrap
Wrap a string of text, without breaking in between “Closes: #XXXXXX” fragments
try_rewrap_changes
Rewrap lines from an iterator of changes