Skip to content

Commit 7d0bee0

Browse files
committed
FlexiHelpFormatter: Recognize "-" bullets
1 parent 87393ee commit 7d0bee0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/argparse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ def _indents(self, line):
703703
"""Return line indent level and "sub_indent" for bullet list text."""
704704

705705
indent = len(_re.match(r"( *)", line).group(1))
706-
list_match = _re.match(r"( *)(([*-+>]+|\w+\)|\w+\.) +)", line)
706+
list_match = _re.match(r"( *)(([*\-+>]+|\w+\)|\w+\.) +)", line)
707707
if list_match:
708708
sub_indent = indent + len(list_match.group(2))
709709
else:

0 commit comments

Comments
 (0)