lib/asciidoctor/nist/converter.rb in metanorma-nist-1.0.0 vs lib/asciidoctor/nist/converter.rb in metanorma-nist-1.0.1
- old
+ new
@@ -113,11 +113,10 @@
ret
end
def clause_parse(attrs, xml, node)
role = node.role || node.attr("style")
- attrs[:preface] = true if role == "preface"
attrs[:executivesummary] = true if role == "executive-summary"
super
end
def acknowledgements_parse(attrs, xml, node)
@@ -162,9 +161,11 @@
terms_annex_parse(a, xml, node)
@term_def = false
else
clause_parse(a, xml, node)
end
+ when "acknowledgements"
+ acknowledgements_parse(a, xml, node)
else
if @term_def
term_def_subclause_parse(a, xml, node)
elsif @biblio then bibliography_parse(a, xml, node)
elsif node.attr("style") == "bibliography"