aboutsummaryrefslogtreecommitdiff
path: root/gnu/usr.bin/man/makewhatis/makewhatis.perl
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2001-08-09 15:42:40 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2001-08-09 15:42:40 +0000
commitac0450b5302c44cb103881437306c491fdce0384 (patch)
treeee6b9762009d1bdb918f3c0b88c351c85a20ef8f /gnu/usr.bin/man/makewhatis/makewhatis.perl
parent411c56e4bfe9ee1feab69347141792a13794d675 (diff)
downloadsrc-ac0450b5302c44cb103881437306c491fdce0384.tar.gz
src-ac0450b5302c44cb103881437306c491fdce0384.zip
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
Notes
Notes: svn path=/head/; revision=81358
Diffstat (limited to 'gnu/usr.bin/man/makewhatis/makewhatis.perl')
-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 11b0249feb80..2bb0e138a887 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;