Skip to content

Commit

Permalink
[5.3] Fix line breaks in plain text email (#15115)
Browse files Browse the repository at this point in the history
* Fix line breaks in plain text email

* Keep it uniform
  • Loading branch information
tillkruss authored and taylorotwell committed Aug 29, 2016
1 parent 83dbf6d commit 2df8485
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
<?php
if ($greeting !== null) {
echo e($greeting);
if (! empty($greeting)) {
echo $greeting, "\n\n";
} else {
echo $level == 'error' ? 'Whoops!' : 'Hello!';
echo $level == 'error' ? 'Whoops!' : 'Hello!', "\n\n";
}
if (! empty($introLines)) {
echo implode("\r\n", $introLines), "\r\n\r\n";
echo implode("\n", $introLines), "\n\n";
}
if (isset($actionText)) {
echo "{$actionText}: {$actionUrl}\r\n\r\n";
echo "{$actionText}: {$actionUrl}", "\n\n";
}
if (! empty($outroLines)) {
echo implode("\r\n", $outroLines), "\r\n\r\n";
echo implode("\n", $outroLines), "\n\n";
}
?>
Regards,
{{ config('app.name') }}
echo 'Regards,', "\n";
echo config('app.name'), "\n";

0 comments on commit 2df8485

Please sign in to comment.