lib/asciidoctor/nist/converter.rb in metanorma-nist-1.1.3 vs lib/asciidoctor/nist/converter.rb in metanorma-nist-1.2.0

- old
+ new

@@ -98,13 +98,16 @@ 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", nil, false, "#{@filename}.html") - doc_converter(node).convert(@filename + ".presentation.xml", nil, false, "#{@filename}.doc") - pdf_converter(node)&.convert(@filename + ".presentation.xml", nil, false, "#{@filename}.pdf") + html_converter(node).convert(@filename + ".presentation.xml", + nil, false, "#{@filename}.html") + doc_converter(node).convert(@filename + ".presentation.xml", + nil, false, "#{@filename}.doc") + pdf_converter(node)&.convert(@filename + ".presentation.xml", + nil, false, "#{@filename}.pdf") end def clause_parse(attrs, xml, node) role = node.role || node.attr("style") attrs[:executivesummary] = true if role == "executive-summary" @@ -157,10 +160,10 @@ end def bibliography_annex_parse(attrs, xml, node) attrs1 = attrs.merge(id: "_" + UUIDTools::UUID.random_create) xml.annex **attr_code(attrs1) do |xml_section| - xml_section.title { |t| t << "Bibliography" } + xml_section.title { |t| t << node.title } @biblio = true xml.references **attr_code(attrs.merge(normative: true)) do |r| r << node.content end end