commit | 5efd71038d4207b576caea3ce148a8cffe268eae | [log] [tgz] |
---|---|---|
author | Damien Miller <djm@mindrot.org> | Wed Apr 17 12:30:45 2002 +1000 |
committer | Damien Miller <djm@mindrot.org> | Wed Apr 17 12:30:45 2002 +1000 |
tree | 6b00381d4e08ddff7dac52937153069ff58d298c | |
parent | bd63874d4bc3048f5dfbba8dc5f02fd57e9bdc7b [diff] [blame] |
- (djm) Fix .Nm in mdoc2man.pl from pspencer@fields.utoronto.ca
diff --git a/mdoc2man.pl b/mdoc2man.pl index fddb2e0..928fc5d 100644 --- a/mdoc2man.pl +++ b/mdoc2man.pl
@@ -318,11 +318,13 @@ if (/^Nm$/) { - $name = shift @words + my $n = $name; + $n = shift @words if (@words > 0); + $name = $n unless $name; $retval .= ".br\n" if ($synopsis); - $retval .= "\\fB$name\\fP"; + $retval .= "\\fB$n\\fP"; $nospace = 1 if (! $nospace && $words[0] =~ m/^[\.,]/); next;