lib/metanorma/un/converter.rb in metanorma-un-0.8.8 vs lib/metanorma/un/converter.rb in metanorma-un-0.9.0
- old
+ new
@@ -124,16 +124,16 @@
end
d
end
def outputs(node, ret)
- File.open(@filename + ".xml", "w:UTF-8") { |f| f.write(ret) }
- presentation_xml_converter(node).convert(@filename + ".xml")
- html_converter(node).convert(@filename + ".presentation.xml",
+ File.open("#{@filename}.xml", "w:UTF-8") { |f| f.write(ret) }
+ presentation_xml_converter(node).convert("#{@filename}.xml")
+ html_converter(node).convert("#{@filename}.presentation.xml",
nil, false, "#{@filename}.html")
- doc_converter(node).convert(@filename + ".presentation.xml",
+ doc_converter(node).convert("#{@filename}.presentation.xml",
nil, false, "#{@filename}.doc")
- pdf_converter(node)&.convert(@filename + ".presentation.xml",
+ pdf_converter(node)&.convert("#{@filename}.presentation.xml",
nil, false, "#{@filename}.pdf")
end
def validate(doc)
content_validate(doc)