]> granicus.if.org Git - python/commitdiff
Issue #15497: Correct characters in TextWrapper.replace_whitespace docs.
authorAndrew Svetlov <andrew.svetlov@gmail.com>
Mon, 13 Aug 2012 20:26:28 +0000 (23:26 +0300)
committerAndrew Svetlov <andrew.svetlov@gmail.com>
Mon, 13 Aug 2012 20:26:28 +0000 (23:26 +0300)
Patch by Chris Jerdonek.

Doc/library/textwrap.rst

index 84e6ee1d093b5fd83c65cd444905c2f3e66d3c9e..094e45869c2971071f0aab8a8b16f6ff10281186 100644 (file)
@@ -112,9 +112,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::