diff --git a/src/Reports/Info.php b/src/Reports/Info.php index 7092e78ce4..5028d37199 100644 --- a/src/Reports/Info.php +++ b/src/Reports/Info.php @@ -116,7 +116,9 @@ public function generate( // Length of the total string, plus however many // thousands separators there are. - $countWidth = (strlen($totalCount) + floor($countWidth / 3)); + $countWidth = strlen($totalCount); + $nrOfThousandSeps = floor($countWidth / 3); + $countWidth += $nrOfThousandSeps; // Account for 'total' line. $valueWidth = max(5, $valueWidth);