- (djm) Fix .Nm in mdoc2man.pl from pspencer@fields.utoronto.ca

This commit is contained in:
Damien Miller 2002-04-17 12:30:45 +10:00
parent bd63874d4b
commit 5efd71038d
2 changed files with 6 additions and 3 deletions

View File

@ -1,5 +1,6 @@
20020417
- (djm) Tell users to configure /dev/random support into OpenSSL in INSTALL
- (djm) Fix .Nm in mdoc2man.pl from pspencer@fields.utoronto.ca
20020415
- (djm) Unbreak "make install". Fix from Darren Tucker <dtucker@zip.com.au>
@ -8251,4 +8252,4 @@
- Wrote replacements for strlcpy and mkdtemp
- Released 1.0pre1
$Id: ChangeLog,v 1.2057 2002/04/17 02:22:58 djm Exp $
$Id: ChangeLog,v 1.2058 2002/04/17 02:30:45 djm Exp $

View File

@ -318,11 +318,13 @@ sub ParseMacro # ($line)
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;