lib/isodoc/ogc/reqt.rb in metanorma-ogc-2.0.3 vs lib/isodoc/ogc/reqt.rb in metanorma-ogc-2.0.4
- old
+ new
@@ -46,10 +46,11 @@
label.xpath(ns(".//xref | .//eref | .//quote/source"))
.each { |f| xref1(f) }
label.xpath(ns(".//concept")).each { |f| concept1(f) }
b = out.add_child("<tr><td colspan='2'><p></p></td></tr>")
p = b.at(ns(".//p"))
+ p["class"] = "RecommendationLabel"
p << label.children.to_xml
end
def recommendation_attributes1(node)
out = recommendation_attributes1_head(node, [])
@@ -101,10 +102,10 @@
end
def recommendation_attr_keyvalue(node, key, value)
tag = node&.at(ns("./#{key}"))&.remove
value = node.at(ns("./#{value}"))&.remove
- tag && value or return nil
+ (tag && value) or return nil
node.remove
[tag.text.capitalize, value.children]
end
def recommendation_attributes(node, out)