protected function adaptCells(array $rows, array $maxColumnWidths)
{
foreach ($rows as $rowNum => &$row) {
if ($row instanceof TableSeparator) {
continue;
}
foreach ($row as $column => &$cell) {
$cellWidth = $this->getCellWidth($cell);
if ($cellWidth > $maxColumnWidths[$column]) {
$cell = $this->wrapCell($cell, $maxColumnWidths[$column]);
}
}
}
return $rows;
}