$width += Helper::
length($cell) - Helper::
length(Helper::
removeDecoration($this->output->
getFormatter(),
$cell));
$content =
sprintf($style->
getCellRowContentFormat(),
$cell);
$padType =
$style->
getPadType();
if ($cell instanceof TableCell &&
$cell->
getStyle() instanceof TableCellStyle
) { $isNotStyledByTag = !
preg_match('/^<(\w+|(\w+=[\w,]+;?)*)>.+<\/(\w+|(\w+=\w+;?)*)?>$/',
$cell);
if ($isNotStyledByTag) { $cellFormat =
$cell->
getStyle()->
getCellFormat();
if (!\
is_string($cellFormat)) { $tag =
http_build_query($cell->
getStyle()->
getTagOptions(), '', ';'
);
$cellFormat = '<'.
$tag.'>%s</>';
} if (str_contains($content, '</>'
)) { $content =
str_replace('</>', '',
$content);
$width -= 3;
} if (str_contains($content, '<fg=default;bg=default>'
)) { $content =
str_replace('<fg=default;bg=default>', '',
$content);
$width -= \
strlen('<fg=default;bg=default>'
);
} }