X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=util%2Fpod2man.pl;h=546d1ec18600fcee81331cacbb82c77e84d1962d;hp=f5ec0767ed4b070c9233acf57c7269c49a8adbe2;hb=0f76640fba8cf91f3930d5288d1cf02ef63c5b01;hpb=294b3c1a9c7637d413fe58014cd404856a34621e diff --git a/util/pod2man.pl b/util/pod2man.pl index f5ec0767ed..546d1ec186 100755 --- a/util/pod2man.pl +++ b/util/pod2man.pl @@ -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/ /g; + $n[1] =~ s/\n/ /g; %namedesc = @n; } } @@ -423,6 +425,7 @@ if ($name ne 'something') { } next if /^=cut\b/; # DB_File and Net::Ping have =cut before NAME next if /^=pod\b/; # It is OK to have =pod before NAME + next if /^=for\s+comment\b/; # It is OK to have =for comment before NAME die "$0: Invalid man page - 1st pod line is not NAME in $ARGV[0]\n" unless $lax; } die "$0: Invalid man page - no documentation in $ARGV[0]\n" unless $lax;