lib/asciidoctor/itu/converter.rb in metanorma-itu-1.0.0 vs lib/asciidoctor/itu/converter.rb in metanorma-itu-1.0.1
- old
+ new
@@ -41,10 +41,12 @@
ret1.root.add_namespace(nil, Metanorma::ITU::DOCUMENT_NAMESPACE)
ret1
end
def doctype(node)
- node.attr("doctype") || "recommendation"
+ ret = node.attr("doctype") || "recommendation"
+ ret = "recommendation" if ret == "article"
+ ret
end
def olist(node)
noko do |xml|
xml.ol **attr_code(id: Asciidoctor::Standoc::Utils::anchor_or_uuid(node),