We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5c82847 + 7a46d37 commit b93aa4bCopy full SHA for b93aa4b
src/Generators/Text.php
@@ -231,9 +231,9 @@ protected function printCodeComparisonBlock(\DOMNode $node)
231
}
232
233
echo '| ';
234
- echo $firstLineText.str_repeat(' ', (47 - strlen($firstLineText)));
+ echo $firstLineText.str_repeat(' ', max(0, (47 - strlen($firstLineText))));
235
236
- echo $secondLineText.str_repeat(' ', (48 - strlen($secondLineText)));
+ echo $secondLineText.str_repeat(' ', max(0, (48 - strlen($secondLineText))));
237
echo '|'.PHP_EOL;
238
}//end for
239
0 commit comments