lib/isodoc/word_function/table.rb in isodoc-1.2.3 vs lib/isodoc/word_function/table.rb in isodoc-1.2.4
- old
+ new
@@ -27,19 +27,20 @@
border-top:#{row.zero? ? "#{SW1} 1.5pt;" : 'none;'}
mso-border-top-alt:#{row.zero? ? "#{SW1} 1.5pt;" : 'none;'}
border-bottom:#{SW1} #{rowmax == totalrows ? '1.5' : '1.0'}pt;
mso-border-bottom-alt:#{SW1} #{rowmax == totalrows ? '1.5' : '1.0'}pt;
STYLE
- { rowspan: td["rowspan"], colspan: td["colspan"],
+ { rowspan: td["rowspan"], colspan: td["colspan"], valign: td["valign"],
align: td["align"], style: style.gsub(/\n/, "") }
end
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;#{keep_style(node)}"
+ "mso-table-overlap:never;border-spacing:0;border-width:1px;#{keep_style(node)}",
+ class: (node.text.length > 4000 ? "MsoISOTableBig" : "MsoISOTable")
}))
end
def table_parse(node, out)
@in_table = true