diff options
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; |