Skip to content

Commit

Permalink
Line break improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
bajb committed Jan 13, 2021
1 parent cc19faf commit 97c5c34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Tools/Gettext/PoTranslation.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ protected function _slash($text)
$text = trim(addcslashes(stripslashes($text), '"'));
if(strpos($text, "\n") > 0)
{
return '"' . "\n" . implode('"\n"', explode("\n", $text));
return implode('"' . PHP_EOL . '"', explode("\n", $text));
}
return $text;
}
Expand Down

0 comments on commit 97c5c34

Please sign in to comment.