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 da9e65c commit c7cd5ceCopy full SHA for c7cd5ce
1 file changed
Lib/textwrap.py
@@ -433,8 +433,8 @@ def dedent(text):
433
434
lines = text.split("\n")
435
436
- splitting = os.path.commonprefix(tuple(filter(lambda x: x.lstrip(), lines)))
437
- margin_len = len(splitting) - len(splitting.lstrip())
+ margin = os.path.commonprefix(tuple(filter(lambda x: x.lstrip(), lines)))
+ margin_len = len(margin) - len(margin.lstrip())
438
439
return "\n".join([line[margin_len:] if line.lstrip() else "\n" if line.endswith("\n") else "" for line in lines])
440
0 commit comments