We are resetting the row span here, since we are starting a new row. A bit below, we change rowspan to to `max(rowspan, d.rowspan)`, so it will end up as `d.rowspan` if we are starting a new row, and as `max(rowspan, d.rowspan)` if we are continuing on the current row.