lib/jekyll-inline-svg.rb in jekyll-inline-svg-1.1.1 vs lib/jekyll-inline-svg.rb in jekyll-inline-svg-1.1.2
- old
+ new
@@ -128,10 +128,10 @@
if conf["optimize"] == true
xml = SvgOptimizer.optimize(file, [create_plugin(params)] + PLUGINS)
else
xml = Nokogiri::XML(file)
params.each {|key,val| xml.root.set_attribute(key,val)}
- xml = xml.to_xml
+ xml = xml.root.to_xml
end
return xml
end
end
end