diff options
Diffstat (limited to 'man/help2man')
-rwxr-xr-x | man/help2man | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/man/help2man b/man/help2man index 8e42f3cd1..75cc4932a 100755 --- a/man/help2man +++ b/man/help2man @@ -316,7 +316,10 @@ unless ($manual) # Extract usage clause(s) [if any] for SYNOPSIS. my $PAT_USAGE = _('Usage'); my $PAT_USAGE_CONT = _('or'); -if ($help_text =~ s/^($PAT_USAGE):( +(\S+))(.*)((?:\n(?: {6}\1| *($PAT_USAGE_CONT): +\S).*)*)//om) +if ($help_text =~ s/^($PAT_USAGE): + ([ ]+(\S+)) + (.*) + ((?:\n(?:[ ]{6}\1|[ ]*($PAT_USAGE_CONT):[ ]+\S).*)*)//omx) { my @syn = $3 . $4; |