[Python-checkins] r86719 - python/branches/release27-maint/Doc/library/textwrap.rst

terry.reedy python-checkins at python.org
Tue Nov 23 21:28:34 CET 2010


Author: terry.reedy
Date: Tue Nov 23 21:28:34 2010
New Revision: 86719

Log:
Issue 1859: Document that textwrap does not break on \n
Merged from 86717


Modified:
   python/branches/release27-maint/Doc/library/textwrap.rst

Modified: python/branches/release27-maint/Doc/library/textwrap.rst
==============================================================================
--- python/branches/release27-maint/Doc/library/textwrap.rst	(original)
+++ python/branches/release27-maint/Doc/library/textwrap.rst	Tue Nov 23 21:28:34 2010
@@ -125,6 +125,13 @@
          each tab character will be replaced by a single space, which is *not*
          the same as tab expansion.
 
+      .. note::
+
+         If :attr:`replace_whitespace` is false, newlines may appear in the
+         middle of a line and cause strange output. For this reason, text should
+         be split into paragraphs (using :meth:`str.splitlines` or similar)
+         which are wrapped separately.
+
 
    .. attribute:: drop_whitespace
 


More information about the Python-checkins mailing list