lib/jekyll-diagrams/smcat.rb in jekyll-diagrams-0.9.2 vs lib/jekyll-diagrams/smcat.rb in jekyll-diagrams-0.9.3
- old
+ new
@@ -7,11 +7,11 @@
CONFIGURATIONS = %w[direction engine input-type].freeze
def render_svg(code, config)
command = build_command(config)
- svg = render_with_tempfile(command, code, stdout: true) do |input|
- "#{input} --output-to -"
+ svg = render_with_tempfile(command, code) do |input, output|
+ "#{input} --output-to #{output}"
end
svg.sub!(XML_REGEX, '')
end