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
This commit is contained in:
parent
53b5703981
commit
cc9b8f7878
|
@ -829,7 +829,7 @@ module SVG
|
||||||
@doc << DocType.new( %q{svg PUBLIC "-//W3C//DTD SVG 1.0//EN" } +
|
@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"} )
|
%q{"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"} )
|
||||||
if style_sheet && style_sheet != ''
|
if style_sheet && style_sheet != ''
|
||||||
@doc << ProcessingInstruction.new( "xml-stylesheet",
|
@doc << Instruction.new( "xml-stylesheet",
|
||||||
%Q{href="#{style_sheet}" type="text/css"} )
|
%Q{href="#{style_sheet}" type="text/css"} )
|
||||||
end
|
end
|
||||||
@root = @doc.add_element( "svg", {
|
@root = @doc.add_element( "svg", {
|
||||||
|
|
Loading…
Reference in New Issue