mirror of
https://github.com/python/cpython.git
synced 2026-01-06 07:22:09 +00:00
Issue 1859: Doc that textwrap does not break on \n (pending possible behavior patch). Patch by Jeremy Thurgood.
This commit is contained in:
parent
4f13d6145f
commit
6d2ab7126e
1 changed files with 7 additions and 0 deletions
|
|
@ -121,6 +121,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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue