From ac0450b5302c44cb103881437306c491fdce0384 Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Thu, 9 Aug 2001 15:42:40 +0000 Subject: 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 --- gnu/usr.bin/man/makewhatis/makewhatis.perl | 1 + 1 file changed, 1 insertion(+) (limited to 'gnu/usr.bin') 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; -- cgit v1.3