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 /Lib/textwrap.py | |
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 'Lib/textwrap.py')
-rw-r--r-- | Lib/textwrap.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/textwrap.py b/Lib/textwrap.py index 8103f34..30e693c 100644 --- a/Lib/textwrap.py +++ b/Lib/textwrap.py @@ -420,9 +420,9 @@ def dedent(text): Note that tabs and spaces are both treated as whitespace, but they are not equal: the lines " hello" and "\\thello" are - considered to have no common leading whitespace. (This behaviour is - new in Python 2.5; older versions of this module incorrectly - expanded tabs before searching for common leading whitespace.) + considered to have no common leading whitespace. + + Entirely blank lines are normalized to a newline character. """ # Look for the longest leading string of spaces and tabs common to # all lines. |