README.md in caracal-1.1.2 vs README.md in caracal-1.2.0

- old
+ new

@@ -637,9 +637,20 @@ cell_style rows[0], background: '3366cc', color: 'ffffff', bold: true cell_style cols[0], width: 6000 end ``` +It is possible to merge cells vertically and horizontally using the `rowspan` and `colspan` options in `cell_style` method e.g. + +```ruby +docx.table [['11', '1213', '14'], ['21', '22', '23', '24']] do + cell_style rows[0][0], rowspan: 2 + cell_style rows[0][1], colspan: 2 + cell_style rows[0][2], rowspan: 2 +end +``` + +*Note: content of cells 21 and 24 will disappear* ### Table Cells If your table contains more complex data (multiple paragraphs, images, lists, etc.), you will probably want to instantiate your `TableCellModel` instances directly. With the exception of page breaks, table cells can contain anything the document can contain, including another table.