lib/isodoc/word_function/table.rb in isodoc-2.4.1 vs lib/isodoc/word_function/table.rb in isodoc-2.4.2
- old
+ new
@@ -24,10 +24,11 @@
def make_tr_attr(cell, row, totalrows, header, bordered)
style = cell.name == "th" ? "font-weight:bold;" : ""
rowmax = cell["rowspan"] ? row + cell["rowspan"].to_i - 1 : row
style += make_tr_attr_style(row, rowmax, totalrows, header, bordered)
{ rowspan: cell["rowspan"], colspan: cell["colspan"],
- valign: cell["valign"], align: cell["align"], style: style }
+ valign: cell["valign"], align: cell["align"], style: style,
+ class: cell["class"] }
end
def make_tr_attr_style(row, rowmax, totalrows, header, bordered)
ret = <<~STYLE.gsub(/\n/, "")
border-top:#{row.zero? ? "#{SW1} 1.5pt;" : 'none;'}