Skip to content

Commit

Permalink
Merge pull request #3179 from paulbalandan/cli-wrap
Browse files Browse the repository at this point in the history
Use explicit 'PHP_EOL' in wordwrap
  • Loading branch information
michalsn authored Jun 28, 2020
2 parents de968b7 + f722360 commit d4d7fdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/CLI/CLI.php
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ public static function wrap(string $string = null, int $max = 0, int $pad_left =

$max = $max - $pad_left;

$lines = wordwrap($string, $max);
$lines = wordwrap($string, $max, PHP_EOL);

if ($pad_left > 0)
{
Expand Down

0 comments on commit d4d7fdf

Please sign in to comment.