lib/isodoc/word_function/table.rb in isodoc-1.0.28 vs lib/isodoc/word_function/table.rb in isodoc-1.0.29

- old
+ new

@@ -31,23 +31,23 @@ STYLE { rowspan: td["rowspan"], colspan: td["colspan"], align: td["align"], style: style.gsub(/\n/, "") } end - def make_table_attr(node) + def table_attrs(node) super.merge(attr_code({ summary: node["summary"], width: node["width"], style: "mso-table-anchor-horizontal:column;"\ - "mso-table-overlap:never;border-spacing:0;border-width:1px;" + "mso-table-overlap:never;border-spacing:0;border-width:1px;#{keep_style(node)}" })) end def table_parse(node, out) @in_table = true table_title_parse(node, out) out.div **{ align: "center", class: "table_container" } do |div| - div.table **make_table_attr(node) do |t| + div.table **table_attrs(node) do |t| thead_parse(node, t) tbody_parse(node, t) tfoot_parse(node, t) (dl = node.at(ns("./dl"))) && parse(dl, out) node.xpath(ns("./note")).each { |n| parse(n, out) }