Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d4a932 commit 8b7eef3Copy full SHA for 8b7eef3
1 file changed
Doc/library/textwrap.rst
@@ -117,6 +117,13 @@ indentation from strings that have unwanted whitespace to the left of the text.
117
each tab character will be replaced by a single space, which is *not*
118
the same as tab expansion.
119
120
+ .. note::
121
+
122
+ If :attr:`replace_whitespace` is false, newlines may appear in the
123
+ middle of a line and cause strange output. For this reason, text should
124
+ be split into paragraphs (using :meth:`str.splitlines` or similar)
125
+ which are wrapped separately.
126
127
128
.. attribute:: drop_whitespace
129
0 commit comments