lib/stepmod/utils/converters/express_g.rb in stepmod-utils-0.3.30 vs lib/stepmod/utils/converters/express_g.rb in stepmod-utils-0.3.31

- old
+ new

@@ -16,18 +16,19 @@ def parse_to_svg_reference(file, state) return "" unless File.file?(file) image_document = Nokogiri::XML(File.read(file)) - svg_path = File.basename(image_document.xpath("//img").first["src"], + svg_filename = File.basename(image_document.xpath("//img").first["src"], ".*") <<~SVGMAP *) (*"#{state.fetch(:schema_name)}.__expressg" + [[#{svg_filename}]] [.svgmap] ==== - image::#{svg_path}.svg[] + image::#{svg_filename}.svg[] #{image_document.xpath('//img.area').map.with_index(1) { |n, i| schema_reference(n['href'], i) }.join("\n")} ==== SVGMAP end