diff options
Diffstat (limited to 'man')
-rwxr-xr-x | man/help2man | 5 | ||||
-rw-r--r-- | man/stdbuf.x | 3 |
2 files changed, 6 insertions, 2 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; diff --git a/man/stdbuf.x b/man/stdbuf.x index 1ef2d9e43..94425f5b6 100644 --- a/man/stdbuf.x +++ b/man/stdbuf.x @@ -4,7 +4,8 @@ '\" of the GNU General Public License <http://www.gnu.org/licenses/gpl.html>. '\" There is NO WARRANTY, to the extent permitted by law. [NAME] -stdbuf \- Run COMMAND, with modified buffering operations for its standard streams. +stdbuf \- +Run COMMAND, with modified buffering operations for its standard streams. [DESCRIPTION] .\" Add any additional description here [EXAMPLES] |