File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -763,18 +763,18 @@ private function calculateColumnsWidth(iterable $groups)
763763 continue ;
764764 }
765765
766- foreach ($ row as $ i => $ cell ) {
767- if ($ cell instanceof TableCell) {
768- $ textContent = Helper::removeDecoration ($ this ->output ->getFormatter (), $ cell );
769- $ textLength = Helper::strlen ($ textContent );
770- if ($ textLength > 0 ) {
771- $ contentColumns = str_split ($ textContent , ceil ($ textLength / $ cell ->getColspan ()));
772- foreach ($ contentColumns as $ position => $ content ) {
773- $ row [$ i + $ position ] = $ content ;
766+ foreach ($ row as $ i => $ cell ) {
767+ if ($ cell instanceof TableCell) {
768+ $ textContent = Helper::removeDecoration ($ this ->output ->getFormatter (), $ cell );
769+ $ textLength = Helper::strlen ($ textContent );
770+ if ($ textLength > 0 ) {
771+ $ contentColumns = str_split ($ textContent , ceil ($ textLength / $ cell ->getColspan ()));
772+ foreach ($ contentColumns as $ position => $ content ) {
773+ $ row [$ i + $ position ] = $ content ;
774+ }
774775 }
775776 }
776777 }
777- }
778778
779779 $ lengths [] = $ this ->getCellWidth ($ row , $ column );
780780 }
You can’t perform that action at this time.
0 commit comments