Function
zope.configuration.docutils.wrap

Signature

wrap(text, width=78, indent=0)

Documentation String

Makes sure that we keep a line length of a certain width.

Examples:

>>> print wrap('foo bar')[:-2]
foo bar
>>> print wrap('foo bar', indent=2)[:-2]
  foo bar
>>> print wrap('foo bar, more foo bar', 10)[:-2]
foo bar,
more foo
bar
>>> print wrap('foo bar, more foo bar', 10, 2)[:-2]
  foo bar,
  more foo
  bar