Hello,

I've found another typo in the same man page, which avoid a part of the
man page to be displayed:
.IP "@printf "expression" stuff1, stuff2, ...@"
only displays @printf.
With roff, to display quotes in a quoted argument, 2 double quotes must be
used.

I've noticed that the man page is generated, and the issue is in the Perl
script.

The attached patch fixes the mib2c.extract.pl Perl script which generates
the part of the man page with the issue.

Best Regards,
-- 
Nekral
diff -rauN ../orig/net-snmp-5.2.1.2+cvs20050815/man/mib2c.extract.pl 
./net-snmp-5.2.1.2+cvs20050815/man/mib2c.extract.pl
--- ../orig/net-snmp-5.2.1.2+cvs20050815/man/mib2c.extract.pl   2004-04-29 
01:45:44.000000000 +0200
+++ ./net-snmp-5.2.1.2+cvs20050815/man/mib2c.extract.pl 2006-01-24 
16:35:47.000000000 +0100
@@ -12,6 +12,10 @@
        while (<I>) {
            last if (!/^#/);
            s/^#\s+//;
+           # Avoid ' at the beginning of a line
+           s/^'/\\&'/;
+           # Quotes in a quoted argument must be doubled.
+           s/"/""/g;
            s/^([EMAIL PROTECTED]@)$/.IP "$1"/;
            print;
        }
@@ -25,6 +29,10 @@
            last if (!/^#/);
            next if (/^#\s*$/);
            s/^#\s+//;
+           # Avoid ' at the beginning of a line
+           s/^'/\\&'/;
+           # Quotes in a quoted argument must be doubled.
+           s/"/""/g;
            s/^(\S+)\s+--\s+(.*)/.IP "$1"\n$2/;
            print;
        }

Reply via email to