% def cell_style(cell) [].tap do |styles| styles << "text-align: #{cell.align}" if !cell.align.to_s.empty? styles << "width: #{cell.width}%" if cell.width end.join(';') end %> <% if object.body.rows.any? -%>
<%= cell.text %> | <% end -%>
---|
<%= cell.text %> | <% end -%>
<%= cell.text %> | <% end -%>