File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,9 @@ indentation from strings that have unwanted whitespace to the left of the text.
6666 of this module incorrectly expanded tabs before searching for common leading
6767 whitespace.)
6868
69+ Lines containing only whitespace are ignored in the input and normalized to a
70+ single newline character in the output.
71+
6972 For example::
7073
7174 def test():
Original file line number Diff line number Diff line change @@ -383,6 +383,8 @@ def dedent(text):
383383 considered to have no common leading whitespace. (This behaviour is
384384 new in Python 2.5; older versions of this module incorrectly
385385 expanded tabs before searching for common leading whitespace.)
386+
387+ Entirely blank lines are normalized to a newline character.
386388 """
387389 # Look for the longest leading string of spaces and tabs common to
388390 # all lines.
You can’t perform that action at this time.
0 commit comments