From e3e9713fad1cdd2ffc6334c180181cae3ae25df2 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 1 Feb 2009 20:29:14 +0100 Subject: doc: preserve --help line breaks in 'REPORTING BUGS' man page section * man/help2man: Insert .br between adjacent lines. --- man/help2man | 3 +++ 1 file changed, 3 insertions(+) (limited to 'man') diff --git a/man/help2man b/man/help2man index d680425ac..7b7ce7a4b 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; } } -- cgit v1.2.3-70-g09d2