lib/isodoc/ogc/reqt.rb in metanorma-ogc-1.0.8 vs lib/isodoc/ogc/reqt.rb in metanorma-ogc-1.0.9
- old
+ new
@@ -12,11 +12,12 @@
"recommend"
end
def recommend_table_attr(node)
attr_code(id: node["id"], class: recommend_class(node),
- style: "border-collapse:collapse;border-spacing:0;")
+ style: "border-collapse:collapse;border-spacing:0;"\
+ "#{keep_style(node)}")
end
REQ_TBL_ATTR =
{ style: "vertical-align:top;", class: "recommend" }.freeze
@@ -103,15 +104,20 @@
end
end
end
end
+ def reqt_component_attrs(node)
+ attr_code(style: keep_style(node))
+ end
+
def requirement_component_parse(node, out)
return if node["exclude"] == "true"
node.elements.size == 1 && node.first_element_child.name == "dl" and
return reqt_dl(node.first_element_child, out)
out.tr do |tr|
- tr.td **REQ_TBL_ATTR.merge(colspan: 2) do |td|
+ tr.td **REQ_TBL_ATTR.merge(colspan: 2).
+ merge(reqt_component_attrs(node)) do |td|
node.children.each { |n| parse(n, td) }
end
end
end