Avoid problems with multi-line NAME sections.
authorBodo Möller <bodo@openssl.org>
Thu, 8 Mar 2001 21:52:53 +0000 (21:52 +0000)
committerBodo Möller <bodo@openssl.org>
Thu, 8 Mar 2001 21:52:53 +0000 (21:52 +0000)
util/pod2man.pl

index f5ec076..c6b64ad 100755 (executable)
@@ -416,6 +416,8 @@ if ($name ne 'something') {
                        warn "$0: Improper man page - malformed NAME header in paragraph $. of $ARGV[0]\n"
                    }
                    else {
+                       $n[0] =~ s/\n/ /;
+                       $n[1] =~ s/\n/ /;
                        %namedesc = @n;
                    }
                }