Skip to content

Commit

Permalink
Issue #15497: Correct characters in TextWrapper.replace_whitespace docs.
Browse files Browse the repository at this point in the history
Patch by Chris Jerdonek.
  • Loading branch information
asvetlov committed Aug 13, 2012
1 parent 50be452 commit 59db401
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Doc/library/textwrap.rst
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,11 @@ indentation from strings that have unwanted whitespace to the left of the text.

.. attribute:: replace_whitespace

(default: ``True``) If true, each whitespace character (as defined by
``string.whitespace``) remaining after tab expansion will be replaced by a
single space.
(default: ``True``) If true, after tab expansion but before wrapping,
the :meth:`wrap` method will replace each whitespace character
with a single space. The whitespace characters replaced are
as follows: tab, newline, vertical tab, formfeed, and carriage
return (``'\t\n\v\f\r'``).

.. note::

Expand Down

0 comments on commit 59db401

Please sign in to comment.