I have a rails application that exports content from my database in xls format.
I want to create two separate tables without putting them on the same row. Are there any two indexes on the same line anyway?
<?xml version="1.0"?> <Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:html="http://www.w3.org/TR/REC-html40"> <ss:Worksheet ss:Name="Sheet"> <Table> <% @data.each do |data| %> <Row ss:Index="1"> <Cell ss:Index="1"><Data ss:Type="String"><%= data.name %></Data></Cell> </Row> <% end %> <% @moreData.each do |moreData| %> <Row ss:Index="1"> <Cell ss:Index="2"><Data ss:Type="String"><%= moreData.name %></Data></Cell> </Row> <% end %> </Table> </ss:Worksheet> </Workbook>
This is what I have with the code above:

And this is what I'm trying to achieve, if possible, without putting both loops on the same line:

source share