lib/jekyll-diagrams/smcat.rb in jekyll-diagrams-0.9.0 vs lib/jekyll-diagrams/smcat.rb in jekyll-diagrams-0.9.1

- old
+ new

@@ -4,10 +4,10 @@ CONFIGURATIONS = %w( direction engine input-type ).freeze def render_svg(code, config) command = build_command(config) - svg = render_with_stdout(command, code) do |command, input| + svg = render_with_tempfile(command, code, stdout: true) do |command, input| "#{command} #{input} -" end svg.sub!(/^<\?xml(([^>]|\n)*>\n?){2}/, '') end \ No newline at end of file