Skip to content

Commit 9ef8f84

Browse files
committed
LOOP-1158: Added breaks
1 parent d01f13a commit 9ef8f84

File tree

1 file changed

+3
-3
lines changed
  • web/profiles/custom/os2loop/modules/os2loop_mail_notifications/src/Helper

1 file changed

+3
-3
lines changed

web/profiles/custom/os2loop/modules/os2loop_mail_notifications/src/Helper/MailHelper.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function sendNotification(User $user, array $groupedMessages) {
8787
$section = array_map(function (Message $message) use ($langcode) {
8888
return $this->getMessageContent($message, $langcode);
8989
}, $messages);
90-
$section = implode(PHP_EOL, $section);
90+
$section = implode('<br>', $section);
9191
$sections[$type] = $section;
9292
$params[$type] = $section;
9393
}
@@ -119,12 +119,12 @@ public function sendNotification(User $user, array $groupedMessages) {
119119

120120
$messagesWithHeadings = '';
121121
foreach ($messageSections as $heading => $content) {
122-
$messagesWithHeadings .= $heading . PHP_EOL . PHP_EOL . '* ' . implode(PHP_EOL . '* ', $content) . PHP_EOL . PHP_EOL;
122+
$messagesWithHeadings .= $heading . '<br><br>' . implode('<br>', $content) . '<br><br>';
123123
}
124124
$params['messages_with_headings'] = $messagesWithHeadings;
125125

126126
$sections = array_filter($sections);
127-
$params['messages'] = implode(PHP_EOL . PHP_EOL, $sections);
127+
$params['messages'] = implode('<br><br>', $sections);
128128
$params['user'] = $user;
129129

130130
$result = $this->mailer->mail(Helper::MODULE, self::NOTIFICATION_MAIL, $user->getEmail(), $langcode, $params, NULL, TRUE);

0 commit comments

Comments
 (0)