lib/metanorma/standoc/validate_section.rb in metanorma-standoc-2.7.1 vs lib/metanorma/standoc/validate_section.rb in metanorma-standoc-2.7.2
- old
+ new
@@ -19,12 +19,11 @@
def callouts_error(elem, callouts, annotations)
if callouts.size != annotations.size && !annotations.empty?
err = "mismatch of callouts (#{callouts.size}) and annotations " \
"(#{annotations.size})"
- @log.add("AsciiDoc Input", elem, err)
- @fatalerror << err
+ @log.add("AsciiDoc Input", elem, err, severity: 0)
end
end
def style_warning(node, msg, text = nil)
w = msg
@@ -56,18 +55,15 @@
style_warning(c, "Hanging paragraph in clause")
end
end
def norm_ref_validate(doc)
- found = false
doc.xpath("//references[@normative = 'true']/bibitem").each do |b|
docid = b.at("./docidentifier[@type = 'metanorma']") or next
/^\[\d+\]$/.match?(docid.text) or next
@log.add("Bibliography", b,
- "Numeric reference in normative references")
- found = true
+ "Numeric reference in normative references", severity: 0)
end
- found and @fatalerror << "Numeric reference in normative references"
end
end
end
end