summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-08-13 20:23:02 (GMT)
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-08-13 20:23:02 (GMT)
commitf334f740e47a8ac1fd5d144813be7380192ac28b (patch)
tree1301a5bc1a4abe9f26cf7cfa285bc484132aca54 /Doc/library
parenta86565465a9b1199d5ce16ce42239996b8441fd1 (diff)
parent59db40166760e270aab5417b5933022349cd35ee (diff)
downloadcpython-f334f740e47a8ac1fd5d144813be7380192ac28b.zip
cpython-f334f740e47a8ac1fd5d144813be7380192ac28b.tar.gz
cpython-f334f740e47a8ac1fd5d144813be7380192ac28b.tar.bz2
Issue #15497: Correct characters in TextWrapper.replace_whitespace docs.
Patch by Chris Jerdonek.
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/textwrap.rst8
1 files changed, 5 insertions, 3 deletions
diff --git a/Doc/library/textwrap.rst b/Doc/library/textwrap.rst
index 50c710c..0ac1cc6 100644
--- a/Doc/library/textwrap.rst
+++ b/Doc/library/textwrap.rst
@@ -145,9 +145,11 @@ in a block of 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::