<% 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? -%> <% object.header.rows.each do |row| -%> <% row.cells.each do |cell| -%> <% end -%> <% end -%> <% object.body.rows.each do |row| -%> <% row.cells.each do |cell| -%> <% end -%> <% end -%> <% object.footer.rows.each do |row| -%> <% row.cells.each do |cell| -%> <% end -%> <% end -%>
<%= cell.text %>
<%= cell.text %>
<%= cell.text %>
<% end -%>