lib/asciidoctor/gb/converter.rb in metanorma-gb-1.1.3 vs lib/asciidoctor/gb/converter.rb in metanorma-gb-1.1.4
- old
+ new
@@ -26,10 +26,10 @@
result << noko { |ixml| front node, ixml }
result << noko { |ixml| middle node, ixml }
result << "</gb-standard>"
result = textcleanup(result)
ret1 = cleanup(Nokogiri::XML(result))
- validate(ret1)
+ validate(ret1) unless @novalid
ret1.root.add_namespace(nil, GB_NAMESPACE)
ret1
end
def gb_attributes(node)