b.utextwrap : module documentation

Part of bzrlib

No module docstring
Class UTextWrapper Extend TextWrapper for Unicode.
Function wrap Wrap a single paragraph of text, returning a list of wrapped lines.
Function fill Fill a single paragraph of text, returning a new string.
def wrap(text, width=None, **kwargs):
Wrap a single paragraph of text, returning a list of wrapped lines.

Reformat the single paragraph in 'text' so it fits in lines of no more than 'width' columns, and return a list of wrapped lines. By default, tabs in 'text' are expanded with string.expandtabs(), and all other whitespace characters (including newline) are converted to space. See TextWrapper class for available keyword args to customize wrapping behaviour.

def fill(text, width=None, **kwargs):
Fill a single paragraph of text, returning a new string.

Reformat the single paragraph in 'text' to fit in lines of no more than 'width' columns, and return a new string containing the entire wrapped paragraph. As with wrap(), tabs are expanded and other whitespace characters converted to space. See TextWrapper class for available keyword args to customize wrapping behaviour.

API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.