From d06a666429befbc8efad6f42bd1d8ae709be7f05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A1draig=20Brady?=
Date: Sat, 3 Jan 2026 15:23:18 +0000 Subject: [PATCH] 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. --- man/help2man | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man/help2man b/man/help2man index a158c1c33..5ce8c34a3 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");