lib/asciidoctor/ietf/validate.rb in metanorma-ietf-2.0.5 vs lib/asciidoctor/ietf/validate.rb in metanorma-ietf-2.0.6

- old
+ new

@@ -8,19 +8,19 @@ end def image_validate(doc) doc.xpath("//image").each do |i| next if i["mimetype"] == "image/svg+xml" - warn "image #{i['src'][0, 40]} is not SVG!" + @log.add("MIME", i, "image #{i['src'][0, 40]} is not SVG!") end end def workgroup_validate(doc) return if @workgroups.empty? doc.xpath("//bibdata/ext/editorialgroup/workgroup").each do |wg| wg_norm = wg.text.sub(/ (Working|Research) Group$/, "") next if @workgroups.include?(wg_norm) - warn "IETF: unrecognised working group #{wg.text}" + @log.add("Document Attributes", nil, "IETF: unrecognised working group #{wg.text}") end end def validate(doc) content_validate(doc)