diff options
author | Damien Miller <djm@mindrot.org> | 2002-04-17 12:30:45 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2002-04-17 12:30:45 +1000 |
commit | 5efd71038d4207b576caea3ce148a8cffe268eae (patch) | |
tree | 6b00381d4e08ddff7dac52937153069ff58d298c /mdoc2man.pl | |
parent | bd63874d4bc3048f5dfbba8dc5f02fd57e9bdc7b (diff) |
- (djm) Fix .Nm in mdoc2man.pl from pspencer@fields.utoronto.ca
Diffstat (limited to 'mdoc2man.pl')
-rw-r--r-- | mdoc2man.pl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mdoc2man.pl b/mdoc2man.pl index fddb2e09d..928fc5d7a 100644 --- a/mdoc2man.pl +++ b/mdoc2man.pl | |||
@@ -318,11 +318,13 @@ sub ParseMacro # ($line) | |||
318 | 318 | ||
319 | if (/^Nm$/) | 319 | if (/^Nm$/) |
320 | { | 320 | { |
321 | $name = shift @words | 321 | my $n = $name; |
322 | $n = shift @words | ||
322 | if (@words > 0); | 323 | if (@words > 0); |
324 | $name = $n unless $name; | ||
323 | $retval .= ".br\n" | 325 | $retval .= ".br\n" |
324 | if ($synopsis); | 326 | if ($synopsis); |
325 | $retval .= "\\fB$name\\fP"; | 327 | $retval .= "\\fB$n\\fP"; |
326 | $nospace = 1 | 328 | $nospace = 1 |
327 | if (! $nospace && $words[0] =~ m/^[\.,]/); | 329 | if (! $nospace && $words[0] =~ m/^[\.,]/); |
328 | next; | 330 | next; |