]> git.donarmstrong.com Git - lilypond.git/commitdiff
Fixed init file to reflect texi2html changes
authorPatrick McCarty <pnorcks@gmail.com>
Thu, 4 Sep 2008 08:01:31 +0000 (01:01 -0700)
committerJohn Mandereau <john.mandereau@gmail.com>
Thu, 4 Sep 2008 09:34:34 +0000 (11:34 +0200)
* The CSS_LINES variable is no longer modified
  in texi2html.  Instead, its value is stored in
  Texi2HTML::THISDOC{'CSS_LINES'}.  This patch
  is a simple search and replace.

Signed-off-by: Patrick McCarty <pnorcks@gmail.com>
lilypond-texi2html.init

index e208e5933b70cbd01dc2dde7aa873cb94e1e06a7..df50fe24c724fd45a4b12c3b389f72c6226e8193 100644 (file)
@@ -233,19 +233,19 @@ sub lilypond_css_lines ($$)
 {
     my $import_lines = shift;
     my $rule_lines = shift;
-    return if (defined($CSS_LINES));
+    return if (defined($Texi2HTML::THISDOC{'CSS_LINES'}));
     if (@$rule_lines or @$import_lines)
     {
-        $CSS_LINES = "<style type=\"text/css\">\n<!--\n";
-        $CSS_LINES .= join('',@$import_lines) . "\n" if (@$import_lines);
-        $CSS_LINES .= join('',@$rule_lines) . "\n" if (@$rule_lines);
-        $CSS_LINES .= "-->\n</style>\n";
+        $Texi2HTML::THISDOC{'CSS_LINES'} = "<style type=\"text/css\">\n<!--\n";
+        $Texi2HTML::THISDOC{'CSS_LINES'} .= join('',@$import_lines) . "\n" if (@$import_lines);
+        $Texi2HTML::THISDOC{'CSS_LINES'} .= join('',@$rule_lines) . "\n" if (@$rule_lines);
+        $Texi2HTML::THISDOC{'CSS_LINES'} .= "-->\n</style>\n";
     }
     foreach my $ref (@CSS_REFS)
     {
-        $CSS_LINES .= "<link rel=\"stylesheet\" type=\"text/css\" href=\"$ref\">\n";
+        $Texi2HTML::THISDOC{'CSS_LINES'} .= "<link rel=\"stylesheet\" type=\"text/css\" href=\"$ref\">\n";
     }
-    $CSS_LINES .= "<!--[if lte IE 7]>\n<link href=\"lilypond-ie-fixes.css\" rel=\"stylesheet\" type=\"text/css\">\n<![endif]-->\n";
+    $Texi2HTML::THISDOC{'CSS_LINES'} .= "<!--[if lte IE 7]>\n<link href=\"lilypond-ie-fixes.css\" rel=\"stylesheet\" type=\"text/css\">\n<![endif]-->\n";
 }