This commit is contained in:
Kovid Goyal
2020-05-12 22:54:08 +05:30
parent cdd943ded4
commit 5e48ae8bac
6 changed files with 14 additions and 14 deletions

View File

@@ -289,9 +289,9 @@ class PrintHelpForSeq:
leading_indent = indent
j = '\n' + (' ' * indent)
lines: List[str] = []
for l in text.splitlines():
if l:
lines.extend(wrap(l, limit=linesz - indent))
for ln in text.splitlines():
if ln:
lines.extend(wrap(ln, limit=linesz - indent))
else:
lines.append('')
a((' ' * leading_indent) + j.join(lines))