|
Call Graph |
Word-wrap the given string. I.e., add newlines to the string such
that any lines that are longer than right are broken into
shorter lines (at the first whitespace sequence that occurs before index
right ). If the given string contains newlines, they will
not be removed. Any lines that begin with whitespace will not be
wordwrapped.
-
- Parameters:
indent (int ) - If specified, then indent each line by this number of
spaces.
right (int ) - The right margin for word wrapping. Lines that are longer
than right will be broken at the first whitespace
sequence before the right margin.
startindex (int ) - If specified, then assume that the first line is already
preceeded by startindex characters.
splitchars - A list of non-whitespace characters which can be used to split
a line. (E.g., use '/\' to allow path names to be split over
multiple lines.)
- Returns:
str
|