diff options
author | ru <ru@FreeBSD.org> | 2001-08-09 15:23:30 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2001-08-09 15:23:30 +0000 |
commit | 4ae54bc73c8ddedc7c205c41564b40a49ce66f8c (patch) | |
tree | 74c7dd8e12bafd551344e059bb22b450cd09111d /gnu | |
parent | 8c03b77cd5f86af3919cb91171fbea728fbf7951 (diff) | |
download | FreeBSD-src-4ae54bc73c8ddedc7c205c41564b40a49ce66f8c.zip FreeBSD-src-4ae54bc73c8ddedc7c205c41564b40a49ce66f8c.tar.gz |
An empty request (single dot on the line) is treated as an
empty line by troff(1) and is ignored. Teach makewhatis(1)
about this. This makes the following difference:
-groff_man(7), . groff_man(7) - groff `man' macros to support generation of man pages
+groff_man(7) - groff `man' macros to support generation of man pages
-groff_mdoc(7), -(7) - . groff_mdoc reference for groff's mdoc implementation
+groff_mdoc(7), -(7) - groff_mdoc reference for groff's mdoc implementation
-troff(1), . . troff(1) - format documents
+troff(1) - format documents
Noticed by: yar
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/usr.bin/man/makewhatis/makewhatis.perl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/usr.bin/man/makewhatis/makewhatis.perl b/gnu/usr.bin/man/makewhatis/makewhatis.perl index 599220e..11b0249 100644 --- a/gnu/usr.bin/man/makewhatis/makewhatis.perl +++ b/gnu/usr.bin/man/makewhatis/makewhatis.perl @@ -344,7 +344,7 @@ sub manual { chop; s/^\.IX\s.*//; # delete perlpod garbage s/^\.[A-Z]+[ ]+[0-9]+$//; # delete commands - s/^\.[A-Za-z]+[ \t]*//; # delete commands + s/^\.[A-Za-z]*[ \t]*//; # delete commands s/^\.\\".*$//; #" delete comments s/^[ \t]+//; if ($_) { @@ -375,7 +375,7 @@ sub manual { $list .= @_[1]; $list .= "(@_[2])" if @_[2]; } else { - s/^\.[A-Z][a-z][ \t]*//; + s/^\.([A-Z][a-z])?[ \t]*//; s/[ \t]+$//; $list .= $_; } |