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
This commit is contained in:
ru 2001-08-09 15:42:40 +00:00
parent dbe2b3e23c
commit cd41d1bdf6

View File

@ -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;