]> granicus.if.org Git - python/commitdiff
Issue 1859: Document that textwrap does not break on \n
authorTerry Reedy <tjreedy@udel.edu>
Tue, 23 Nov 2010 20:28:34 +0000 (20:28 +0000)
committerTerry Reedy <tjreedy@udel.edu>
Tue, 23 Nov 2010 20:28:34 +0000 (20:28 +0000)
Merged from 86717

Doc/library/textwrap.rst

index bfc63fb4c22cf37cb9125839128ea86500010f5b..8fbfe9c1c10fa7c58081a2f9bd300ef8ff5cd6e0 100644 (file)
@@ -125,6 +125,13 @@ indentation from strings that have unwanted whitespace to the left of the text.
          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