]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
doc: preserve --help line breaks in 'REPORTING BUGS' man page section
authorJim Meyering <meyering@redhat.com>
Sun, 1 Feb 2009 19:29:14 +0000 (20:29 +0100)
committerJim Meyering <meyering@redhat.com>
Mon, 2 Feb 2009 08:37:48 +0000 (09:37 +0100)
* man/help2man: Insert .br between adjacent lines.

man/help2man

index d680425ac39e5a6b95fcdecb3d37932ec1c16ee1..7b7ce7a4b0fa1a604f5be1232d66349b518aa26a 100755 (executable)
@@ -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;
        }
     }