-
Notifications
You must be signed in to change notification settings - Fork 11.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[5.3] Fix line breaks in plain text email (#15115)
* Fix line breaks in plain text email * Keep it uniform
- Loading branch information
1 parent
83dbf6d
commit 2df8485
Showing
1 changed file
with
9 additions
and
9 deletions.
There are no files selected for viewing
18 changes: 9 additions & 9 deletions
18
src/Illuminate/Notifications/resources/views/email-plain.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; |