applied patch, with indentation tweaks
[p5sagit/p5-mst-13.2.git] / pod / pod2latex.PL
index 4f79c12..ff8bca6 100644 (file)
@@ -12,10 +12,9 @@ use File::Basename qw(&basename &dirname);
 
 # This forces PL files to create target in same directory as PL file.
 # This is so that make depend always knows where to find PL derivatives.
-chdir(dirname($0));
-($file = basename($0)) =~ s/\.PL$//;
-$file =~ s/\.pl$//
-       if ($^O eq 'VMS' or $^O eq 'os2');  # "case-forgiving"
+chdir dirname($0);
+$file = basename($0, '.PL');
+$file .= '.com' if $^O eq 'VMS';
 
 open OUT,">$file" or die "Can't create $file: $!";
 
@@ -473,6 +472,12 @@ while (<POD>) {
          noindex:
            ;
        }
+       elsif ($cmd eq 'pod') {
+           ;   # recognise the pod directive, as no op (hs)
+       }
+       elsif ($cmd eq 'pod') {
+           ;    # recognise the pod directive, as no op (hs)
+       }
        else {
            warn "Unrecognized directive: $cmd\n";
        }
@@ -677,7 +682,7 @@ BEGIN {
     "otilde"   =>      "\\~{o}",       #   small o, tilde
     "Ouml"     =>      '\\"{O}',       #   capital O, dieresis or umlaut mark
     "ouml"     =>      '\\"{o}',       #   small o, dieresis or umlaut mark
-    "szlig"    =>      '\\ss',         #   small sharp s, German (sz ligature)
+    "szlig"    =>      '\\ss{}',       #   small sharp s, German (sz ligature)
     "THORN"    =>      '\\L',          #   capital THORN, Icelandic
     "thorn"    =>      '\\l',,         #   small thorn, Icelandic
     "Uacute"   =>      "\\'{U}",       #   capital U, acute accent