Skip to content

Commit f692c57

Browse files
committed
FlexiHelpFormatter: Recognize "-" bullets
1 parent 18b8311 commit f692c57

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
@@ -681,7 +681,7 @@ def _indents(self, line):
681681
"""Return line indent level and "sub_indent" for bullet list text."""
682682

683683
indent = len(_re.match(r"( *)", line).group(1))
684-
list_match = _re.match(r"( *)(([*-+>]+|\w+\)|\w+\.) +)", line)
684+
list_match = _re.match(r"( *)(([*\-+>]+|\w+\)|\w+\.) +)", line)
685685
if list_match:
686686
sub_indent = indent + len(list_match.group(2))
687687
else:

0 commit comments

Comments
 (0)