We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1379566 commit b71240dCopy full SHA for b71240d
Lib/textwrap.py
@@ -435,7 +435,7 @@ def dedent(text):
435
margin = os.path.commonprefix([line for line in lines if line.strip()])
436
margin_len = len(margin) - len(margin.lstrip())
437
438
- return "\n".join([line[margin_len:] if line.strip() else "\n" if line and line[-1] == "\n" else "" for line in lines])
+ return "\n".join([line[margin_len:] if line.strip() else "" for line in lines])
439
440
441
def indent(text, prefix, predicate=None):
0 commit comments