Skip to content

Commit a9dec69

Browse files
committed
no splitlines
1 parent ee0fece commit a9dec69

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/textwrap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ def dedent(text):
433433
if text.isspace():
434434
return '\n' * text.count('\n')
435435

436-
lines = text.splitlines()
436+
lines = text.split('\n')
437437

438438
# Get length of leading whitespace, inspired by ``os.path.commonprefix()``
439439
non_blank_lines = [l for l in lines if l and not l.isspace()]

0 commit comments

Comments
 (0)