Skip to content

Commit 2a53ad4

Browse files
Update Lib/argparse.py
Co-authored-by: Savannah Ostrowski <savannah@python.org>
1 parent 8e20754 commit 2a53ad4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/argparse.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -765,8 +765,8 @@ def _split_lines(self, text, width):
765765
return self._para_reformat(text, width)
766766

767767
def _fill_text(self, text, width, indent):
768-
lines = self._para_reformat(text, width)
769-
return "\n".join(lines)
768+
lines = self._para_reformat(text, width - len(indent))
769+
return "\n".join(indent + line for line in lines)
770770

771771
def _indents(self, line):
772772
"""Return line indent level and "sub_indent" for bullet list text."""

0 commit comments

Comments
 (0)