Commits

fantasai  committed ceaeb75

fix string replacement error

  • Participants
  • Parent commits e650132

Comments (0)

Files changed (1)

File cvs-import/CSS2.1-test-suite/lib/format/xhtml1print.pm

     $output .= "\n";
     $output .= xml::treeAsXML($tree);
 
-    $printCSS =~ s/%%TESTID%%/$id/;
-    $output =~ s/<\/title>/<\/title>\n  <style type="text\/css">$printCSS  <\/style>/;
+    $_ = $printCSS;
+    s/%%TESTID%%/$id/g;
+    $output =~ s/<\/title>/<\/title>\n  <style type="text\/css">$_  <\/style>/;
     return $output;
 }