diff options
author | Jim Meyering <meyering@redhat.com> | 2009-02-01 20:29:14 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-02-02 09:37:48 +0100 |
commit | e3e9713fad1cdd2ffc6334c180181cae3ae25df2 (patch) | |
tree | ce3cb0b55333438bcd25c0d536867ee751a6911f | |
parent | 6b8578af5ecbd2c8d6b04832f1a36501b47cd6c1 (diff) | |
download | coreutils-e3e9713fad1cdd2ffc6334c180181cae3ae25df2.tar.xz |
doc: preserve --help line breaks in 'REPORTING BUGS' man page section
* man/help2man: Insert .br between adjacent lines.
-rwxr-xr-x | man/help2man | 3 |
1 files changed, 3 insertions, 0 deletions
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; } } |