summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/man
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2001-08-09 15:42:40 +0000
committerru <ru@FreeBSD.org>2001-08-09 15:42:40 +0000
commit774de761c5532054d359c5032311deb79fa903cd (patch)
treeee6b9762009d1bdb918f3c0b88c351c85a20ef8f /gnu/usr.bin/man
parent95984597fcd75e0565ff51a7862b9f202e76f5f4 (diff)
downloadFreeBSD-src-774de761c5532054d359c5032311deb79fa903cd.zip
FreeBSD-src-774de761c5532054d359c5032311deb79fa903cd.tar.gz
Skip empty calls in the NAME section after the .Nm macro call.
This makes the following difference: -groff_mdoc(7), -(7) - groff_mdoc reference for groff's mdoc implementation +groff_mdoc(7) - reference for groff's mdoc implementation
Diffstat (limited to 'gnu/usr.bin/man')
-rw-r--r--gnu/usr.bin/man/makewhatis/makewhatis.perl1
1 files changed, 1 insertions, 0 deletions
diff --git a/gnu/usr.bin/man/makewhatis/makewhatis.perl b/gnu/usr.bin/man/makewhatis/makewhatis.perl
index 11b0249..2bb0e13 100644
--- a/gnu/usr.bin/man/makewhatis/makewhatis.perl
+++ b/gnu/usr.bin/man/makewhatis/makewhatis.perl
@@ -361,6 +361,7 @@ sub manual {
last if /^\.Sh/;
chop;
s/^\.\\".*$//; #" delete comments
+ next if /^\.[ \t]*$/; # skip empty calls
if (/^\.Nm/) {
s/^\.Nm[ \t]*//;
s/ ,/,/g;
OpenPOWER on IntegriCloud