lib/metanorma/generic/converter.rb in metanorma-generic-2.6.3 vs lib/metanorma/generic/converter.rb in metanorma-generic-2.6.4
- old
+ new
@@ -38,15 +38,15 @@
end
def doctype(node)
d = super
node.attr("doctype") == "article" and d = "article"
+ a = configuration.default_doctype and @default_doctype = a
unless configuration.doctypes
- d == "article" and return (configuration.default_doctype || "standard")
+ d == "article" and return @default_doctype
return d
end
- type = configuration.default_doctype ||
- configuration.doctypes.keys[0] || "standard"
+ type = @default_doctype || configuration.doctypes.keys[0]
if !configuration.doctypes.key?(d)
(node.attr("doctype") && node.attr("doctype") != "article") and # factory default
@log.add("Document Attributes", nil,
"#{d} is not a legal document type: reverting to '#{type}'")
d = type