Commit 8b7eef34 authored by Terry Reedy's avatar Terry Reedy

Issue 1859: Document that textwrap does not break on \n

Merged from 86717
parent 8d4a932e
......@@ -117,6 +117,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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment