lib/metanorma/standoc/blocks.rb in metanorma-standoc-2.9.2 vs lib/metanorma/standoc/blocks.rb in metanorma-standoc-2.9.3

- old
+ new

@@ -88,11 +88,11 @@ .merge( keepasterm: node.option?("termexample") || nil, )) do |ex| wrap_in_para(node, ex) end - end.join("") + end end def example(node) role = node.role || node.attr("style") ret = example_to_requirement(node, role) || @@ -126,11 +126,11 @@ noko do |xml| xml.figure **example_attrs(node).merge(class: "pseudocode") do |ex| figure_title(node, ex) wrap_in_para(node, ex) end - end.join("") + end end def example_attrs(node) attr_code(id_unnum_attrs(node).merge(keep_attrs(node))) end @@ -139,11 +139,11 @@ noko do |xml| xml.example **example_attrs(node) do |ex| node.title.nil? or ex.name { |name| name << node.title } wrap_in_para(node, ex) end - end.join("") + end end def para_attrs(node) attr_code(id_attr(node).merge(keep_attrs(node) .merge(align: node.attr("align"), @@ -156,11 +156,11 @@ node.role&.sub(/ .*$/, "") == "source" and return termsource(node) noko do |xml| xml.p **para_attrs(node) do |xml_t| xml_t << node.content end - end.join("") + end end def quote_attrs(node) attr_code(id_attr(node).merge(keep_attrs(node)) .merge(align: node.attr("align"))) @@ -181,10 +181,10 @@ noko do |xml| xml.quote **quote_attrs(node) do |q| quote_attribution(node, q) wrap_in_para(node, q) end - end.join("") + end end def listing_attrs(node) linenums = node.option?("linenums") || node.attributes[3] || @source_linenums