I am generating a spreadsheet using: Rails 3.2.12 with the axlsx gem (version 2.0.0)
There are cells which I want to have the text wrap and the height of the row adjust to match. This works when I use the following:
p = Axlsx::Package.new
wb = p.workbook
wb.styles do |s|
wrap_text = s.add_style alignment: { wrap_text: true }
wb.add_worksheet(name: "Sheet1") do |sheet|
sheet.add_row [variable_containing_long_text], style: wrap_text
However, if I then merge that cell with others: Example
sheet.merge_cells("A14:C14")
the row height no longer auto-fits the contents.
How do I get the auto-height for the row based on contents after merging the cells?