From: Pádraig Brady Date: Sat, 3 Jan 2026 15:23:18 +0000 (+0000) Subject: doc: help2man: recognise option description with smaller indent X-Git-Tag: v9.10~64 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d06a666429befbc8efad6f42bd1d8ae709be7f05;p=thirdparty%2Fcoreutils.git doc: help2man: recognise option description with smaller indent * man/help2man: Allow for a smaller indented option description. This smaller indentation is present in timeout --help output, so now the line spacing in timeout.1 is more consistent. Also having the description on a separate line with a smaller indentation, is a more general way to present option descriptions (and what the man page formatting uses already). We'll be changing many utilities, especially with longer multi-line descriptions to this new format. --- diff --git a/man/help2man b/man/help2man index a158c1c335..5ce8c34a3a 100755 --- a/man/help2man +++ b/man/help2man @@ -534,7 +534,7 @@ while (length) my $content = ''; # Option with description. - if (s/^( {1,10}([+-]\S.*?))(?:( +(?!-))|\n( {20,}))(\S.*)\n//) + if (s/^( {1,10}([+-]\S.*?))(?:( +(?!-))|\n( {7,}))(\S.*)\n//) { $matched .= $& if %append_match; $indent = set_indent length ($4 || "$1$3");