From cc9b8f78783bd9f9d8cdcc4c6f47e4416af83b3e Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Mon, 9 Jun 2008 20:05:32 +0000 Subject: [PATCH] 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 --- lib/SVG/Graph/Graph.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", {