lib/isodoc/word_function/table.rb in isodoc-2.4.4 vs lib/isodoc/word_function/table.rb in isodoc-2.4.5

- old
+ new

@@ -87,18 +87,22 @@ def table_parse(node, out) @in_table = true table_title_parse(node, out) out.div align: "center", class: "table_container" do |div| div.table **table_attrs(node) do |t| - colgroup(node, t) - thead_parse(node, t) - tbody_parse(node, t) - tfoot_parse(node, t) + table_parse_core(node, out) (dl = node.at(ns("./dl"))) && parse(dl, out) node.xpath(ns("./note")).each { |n| parse(n, out) } end end @in_table = false + end + + def table_parse_core(node, out) + colgroup(node, out) + thead_parse(node, out) + tbody_parse(node, out) + tfoot_parse(node, out) end end end end