diff options
author | tmblweed <tmblweed@users.noreply.github.com> | 2019-06-30 04:20:03 (GMT) |
---|---|---|
committer | Gregory P. Smith <greg@krypto.org> | 2019-06-30 04:20:03 (GMT) |
commit | eb97b9211e7c99841d6cae8c63893b3525d5a401 (patch) | |
tree | 39c04a1e9d4a21824bbba05e550ffb15f46d2ee2 /Doc/library/textwrap.rst | |
parent | 95da310078a9364bae9ab3f2ad9c71e34306a70c (diff) | |
download | cpython-eb97b9211e7c99841d6cae8c63893b3525d5a401.zip cpython-eb97b9211e7c99841d6cae8c63893b3525d5a401.tar.gz cpython-eb97b9211e7c99841d6cae8c63893b3525d5a401.tar.bz2 |
bpo-30754: Document textwrap.dedent blank line behavior. (GH-14469)
* Added documentation for textwrap.dedent behavior.
* Remove an obsolete note about pre-2.5 behavior from the docstring.
Diffstat (limited to 'Doc/library/textwrap.rst')
-rw-r--r-- | Doc/library/textwrap.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/library/textwrap.rst b/Doc/library/textwrap.rst index d254466..0f11ef4 100644 --- a/Doc/library/textwrap.rst +++ b/Doc/library/textwrap.rst @@ -77,6 +77,9 @@ functions should be good enough; otherwise, you should use an instance of equal: the lines ``" hello"`` and ``"\thello"`` are considered to have no common leading whitespace. + Lines containing only whitespace are ignored in the input and normalized to a + single newline character in the output. + For example:: def test(): |