examples/merge1.rb in write_xlsx-1.09.4 vs examples/merge1.rb in write_xlsx-1.09.5
- old
+ new
@@ -17,18 +17,15 @@
# Create a new workbook and add a worksheet
workbook = WriteXLSX.new('merge1.xlsx')
worksheet = workbook.add_worksheet
-
# Increase the cell size of the merged cells to highlight the formatting.
worksheet.set_column('B:D', 20)
worksheet.set_row(2, 30)
-
# Create a merge format
format = workbook.add_format(:center_across => 1)
-
# Only one cell should contain text, the others should be blank.
worksheet.write(2, 1, "Center across selection", format)
worksheet.write_blank(2, 2, format)
worksheet.write_blank(2, 3, format)