public function render(IO $io, $indentation = 0)
{
// Is the table empty?
if (!$this->rows) {
return;
}
$screenWidth = $io->getTerminalDimensions()->getWidth();
$excessColumnWidth = max(StringUtil::getLength(sprintf($this->style->getHeaderCellFormat(), ''), $io), StringUtil::getLength(sprintf($this->style->getCellFormat(), ''), $io));
$wrapper = $this->getCellWrapper($io, $screenWidth, $excessColumnWidth, $indentation);
$this->renderRows($io, $wrapper->getWrappedRows(), $wrapper->getColumnLengths(), $excessColumnWidth, $indentation);
}