lib/asciidoctor/iho/converter.rb in metanorma-iho-0.0.2 vs lib/asciidoctor/iho/converter.rb in metanorma-iho-0.0.3
- old
+ new
@@ -56,10 +56,17 @@
c.to to if to
end
end
def metadata_committee(node, xml)
- return unless node.attr("workgroup")
+ unless node.attr("workgroup")
+ @log.add("AsciiDoc Input", nil, "Missing workgroup attribute for document")
+ return
+ end
+ metadata_committee1(node, xml)
+ end
+
+ def metadata_committee1(node, xml)
xml.editorialgroup do |a|
a.committee node.attr("committee")
a.workgroup node.attr("workgroup")
end
i = 2