lib/jekyll-diagrams/plantuml.rb in jekyll-diagrams-0.7.0 vs lib/jekyll-diagrams/plantuml.rb in jekyll-diagrams-0.7.1

- old
+ new

@@ -1,16 +1,17 @@ module Jekyll module Diagrams class PlantUMLBlock < Block def render_svg(code, config) - render_with_stdin_stdout(build_command(config), code) + svg = render_with_stdin_stdout(build_command(config), code) + svg.sub!(/^<\?xml([^>]|\n)*>\n?/, '') end def build_command(config) options = 'java' options << ' -Djava.awt.headless=true' options << ' -jar ' - options << Util.java_classpath('plantuml.1.2020.1.jar') + options << Util.vendor_path('plantuml.1.2020.1.jar') options << ' -tsvg -pipe' end end end end \ No newline at end of file