From: Andrew Svetlov Date: Mon, 13 Aug 2012 20:22:23 +0000 (+0300) Subject: Issue #15497: Correct characters in TextWrapper.replace_whitespace docs. X-Git-Tag: v3.3.0rc1~124^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=59db40166760e270aab5417b5933022349cd35ee;p=thirdparty%2FPython%2Fcpython.git Issue #15497: Correct characters in TextWrapper.replace_whitespace docs. Patch by Chris Jerdonek. --- diff --git a/Doc/library/textwrap.rst b/Doc/library/textwrap.rst index a81496206d72..547db79d77c1 100644 --- a/Doc/library/textwrap.rst +++ b/Doc/library/textwrap.rst @@ -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::