summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-02-01 20:29:14 +0100
committerJim Meyering <meyering@redhat.com>2009-02-02 09:37:48 +0100
commite3e9713fad1cdd2ffc6334c180181cae3ae25df2 (patch)
treece3cb0b55333438bcd25c0d536867ee751a6911f /man
parent6b8578af5ecbd2c8d6b04832f1a36501b47cd6c1 (diff)
downloadcoreutils-e3e9713fad1cdd2ffc6334c180181cae3ae25df2.tar.xz
doc: preserve --help line breaks in 'REPORTING BUGS' man page section
* man/help2man: Insert .br between adjacent lines.
Diffstat (limited to 'man')
-rwxr-xr-xman/help2man3
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;
}
}