Skip to content
Permalink
Browse files

Fixes a bug for empty strings.

  • Loading branch information...
thinkingmedia committed Jan 6, 2017
1 parent b70d554 commit 75ae3414fa329f3275ce862d72e5c7b61b9cc98b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Shell/Helper/TableHelper.php
@@ -45,7 +45,7 @@ protected function _calculateWidths($rows)
foreach ($rows as $line) {
foreach ($line as $k => $v) {
$columnLength = mb_strwidth($line[$k]);
if ($columnLength > (isset($widths[$k]) ? $widths[$k] : 0)) {
if ($columnLength >= (isset($widths[$k]) ? $widths[$k] : 0)) {
$widths[$k] = $columnLength;
}
}

0 comments on commit 75ae341

Please sign in to comment.
You can’t perform that action at this time.