From: Jean-Philippe Lang Date: Mon, 9 Jun 2008 20:05:32 +0000 (+0000) Subject: Fixed: SVG::Graph raises an error when using external stylesheet (#1402). X-Git-Tag: 0.8.0-RC1~457 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cc9b8f78783bd9f9d8cdcc4c6f47e4416af83b3e;p=redmine.git Fixed: SVG::Graph raises an error when using external stylesheet (#1402). git-svn-id: http://redmine.rubyforge.org/svn/trunk@1524 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/lib/SVG/Graph/Graph.rb b/lib/SVG/Graph/Graph.rb index 403a0202b..a5e1ea732 100644 --- a/lib/SVG/Graph/Graph.rb +++ b/lib/SVG/Graph/Graph.rb @@ -829,7 +829,7 @@ module SVG @doc << DocType.new( %q{svg PUBLIC "-//W3C//DTD SVG 1.0//EN" } + %q{"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"} ) if style_sheet && style_sheet != '' - @doc << ProcessingInstruction.new( "xml-stylesheet", + @doc << Instruction.new( "xml-stylesheet", %Q{href="#{style_sheet}" type="text/css"} ) end @root = @doc.add_element( "svg", {