From: Jim Meyering Date: Sun, 1 Feb 2009 19:29:14 +0000 (+0100) Subject: doc: preserve --help line breaks in 'REPORTING BUGS' man page section X-Git-Tag: v7.1~27 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e3e9713fad1cdd2ffc6334c180181cae3ae25df2;p=thirdparty%2Fcoreutils.git doc: preserve --help line breaks in 'REPORTING BUGS' man page section * man/help2man: Insert .br between adjacent lines. --- diff --git a/man/help2man b/man/help2man index d680425ac3..7b7ce7a4b0 100755 --- a/man/help2man +++ b/man/help2man @@ -607,6 +607,9 @@ for my $sect (@pre, (grep ! /^($filter)$/o, @include), @post) # Convert some latin1 chars to troff equivalents s/\xa0/\\ /g; # non-breaking space + $sect eq 'REPORTING BUGS' + and s/\n(.)/\n.br\n$1/g; + print; } }