lib/isodoc/pdf_convert.rb in isodoc-0.9.14 vs lib/isodoc/pdf_convert.rb in isodoc-0.9.15

- old
+ new

@@ -25,10 +25,10 @@ docxml, outname_html, dir = convert_init(file, filename, debug) result = convert1(docxml, filename, dir) return result if debug postprocess(result, filename, dir) FileUtils.rm_rf dir - ::Metanorma::Output::Pdf.new.convert(filename + ".html", outname_html + ".pdf") + ::Metanorma::Output::Pdf.new.convert("#{filename}.html", outname_html + ".pdf") FileUtils.rm_r ["#{filename}.html", tmpimagedir] end def xref_parse(node, out) target = /#/.match(node["target"]) ? node["target"].sub(/#/, ".pdf#") :