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.
66
66
of this module incorrectly expanded tabs before searching for common leading
67
67
whitespace.)
68
68
69
+ Lines containing only whitespace are ignored in the input and normalized to a
70
+ single newline character in the output.
71
+
69
72
For example::
70
73
71
74
def test():
Original file line number Diff line number Diff line change @@ -383,6 +383,8 @@ def dedent(text):
383
383
considered to have no common leading whitespace. (This behaviour is
384
384
new in Python 2.5; older versions of this module incorrectly
385
385
expanded tabs before searching for common leading whitespace.)
386
+
387
+ Entirely blank lines are normalized to a newline character.
386
388
"""
387
389
# Look for the longest leading string of spaces and tabs common to
388
390
# all lines.
You can’t perform that action at this time.
0 commit comments