From 7bddbb51de725c9e6485259f6badd65ffd00b3b7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 2 Jul 2020 11:55:33 +0200 Subject: [PATCH] Fix formatting of text/plain notifications see #325 --- com.woltlab.wcf/templates/email_notification_comment.tpl | 2 +- .../templates/email_notification_commentResponse.tpl | 2 +- .../templates/email_notification_commentResponseOwner.tpl | 2 +- .../templates/email_notification_moderationQueueComment.tpl | 2 +- .../email_notification_moderationQueueCommentResponse.tpl | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/com.woltlab.wcf/templates/email_notification_comment.tpl b/com.woltlab.wcf/templates/email_notification_comment.tpl index 6dba9de9e5..595d7a2b1e 100644 --- a/com.woltlab.wcf/templates/email_notification_comment.tpl +++ b/com.woltlab.wcf/templates/email_notification_comment.tpl @@ -1,7 +1,7 @@ {assign var='count' value=$event->getAuthors()|count}{assign var='guestTimesTriggered' value=$event->getNotification()->guestTimesTriggered}{assign var='authors' value=$event->getAuthors()|array_values} {if $mimeType === 'text/plain'} {capture assign='authorList'}{lang}wcf.user.notification.mail.authorList.plaintext{/lang}{/capture} -{lang}{@$languageVariablePrefix}.mail.plaintext{/lang}{if $count == 1 && !$guestTimesTriggered} +{lang}{@$languageVariablePrefix}.mail.plaintext{/lang}{if $count == 1 && !$guestTimesTriggered} {* this line ends with a space *} {@$event->getUserNotificationObject()->getMailText($mimeType)}{/if} {* this line ends with a space *} {else} diff --git a/com.woltlab.wcf/templates/email_notification_commentResponse.tpl b/com.woltlab.wcf/templates/email_notification_commentResponse.tpl index 1d143d5dda..6f21f85bbe 100644 --- a/com.woltlab.wcf/templates/email_notification_commentResponse.tpl +++ b/com.woltlab.wcf/templates/email_notification_commentResponse.tpl @@ -1,7 +1,7 @@ {assign var='count' value=$event->getAuthors()|count}{assign var='guestTimesTriggered' value=$event->getNotification()->guestTimesTriggered}{assign var='authors' value=$event->getAuthors()|array_values} {if $mimeType === 'text/plain'} {capture assign='authorList'}{lang}wcf.user.notification.mail.authorList.plaintext{/lang}{/capture} -{lang}{@$languageVariablePrefix}.mail.plaintext{/lang}{if $count == 1 && !$guestTimesTriggered} +{lang}{@$languageVariablePrefix}.mail.plaintext{/lang}{if $count == 1 && !$guestTimesTriggered} {* this line ends with a space *} {$event->getUserNotificationObject()->message}{/if} {* this line ends with a space *} {else} diff --git a/com.woltlab.wcf/templates/email_notification_commentResponseOwner.tpl b/com.woltlab.wcf/templates/email_notification_commentResponseOwner.tpl index 1d143d5dda..6f21f85bbe 100644 --- a/com.woltlab.wcf/templates/email_notification_commentResponseOwner.tpl +++ b/com.woltlab.wcf/templates/email_notification_commentResponseOwner.tpl @@ -1,7 +1,7 @@ {assign var='count' value=$event->getAuthors()|count}{assign var='guestTimesTriggered' value=$event->getNotification()->guestTimesTriggered}{assign var='authors' value=$event->getAuthors()|array_values} {if $mimeType === 'text/plain'} {capture assign='authorList'}{lang}wcf.user.notification.mail.authorList.plaintext{/lang}{/capture} -{lang}{@$languageVariablePrefix}.mail.plaintext{/lang}{if $count == 1 && !$guestTimesTriggered} +{lang}{@$languageVariablePrefix}.mail.plaintext{/lang}{if $count == 1 && !$guestTimesTriggered} {* this line ends with a space *} {$event->getUserNotificationObject()->message}{/if} {* this line ends with a space *} {else} diff --git a/com.woltlab.wcf/templates/email_notification_moderationQueueComment.tpl b/com.woltlab.wcf/templates/email_notification_moderationQueueComment.tpl index 62efef8d38..afcfff1e63 100644 --- a/com.woltlab.wcf/templates/email_notification_moderationQueueComment.tpl +++ b/com.woltlab.wcf/templates/email_notification_moderationQueueComment.tpl @@ -1,7 +1,7 @@ {assign var='count' value=$event->getAuthors()|count}{assign var='guestTimesTriggered' value=$event->getNotification()->guestTimesTriggered}{assign var='authors' value=$event->getAuthors()|array_values} {if $mimeType === 'text/plain'} {capture assign='authorList'}{lang}wcf.user.notification.mail.authorList.plaintext{/lang}{/capture} -{lang}{$notificationContent[variables][languageItemPrefix]}.comment.mail.plaintext{/lang}{if $count == 1 && !$guestTimesTriggered} +{lang}{$notificationContent[variables][languageItemPrefix]}.comment.mail.plaintext{/lang}{if $count == 1 && !$guestTimesTriggered} {* this line ends with a space *} {@$event->getUserNotificationObject()->getMailText($mimeType)}{/if} {* this line ends with a space *} {else} diff --git a/com.woltlab.wcf/templates/email_notification_moderationQueueCommentResponse.tpl b/com.woltlab.wcf/templates/email_notification_moderationQueueCommentResponse.tpl index 873c5f0f1b..7939599e26 100644 --- a/com.woltlab.wcf/templates/email_notification_moderationQueueCommentResponse.tpl +++ b/com.woltlab.wcf/templates/email_notification_moderationQueueCommentResponse.tpl @@ -1,7 +1,7 @@ {assign var='count' value=$event->getAuthors()|count}{assign var='guestTimesTriggered' value=$event->getNotification()->guestTimesTriggered}{assign var='authors' value=$event->getAuthors()|array_values} {if $mimeType === 'text/plain'} {capture assign='authorList'}{lang}wcf.user.notification.mail.authorList.plaintext{/lang}{/capture} -{lang}{$notificationContent[variables][languageItemPrefix]}.commentResponse.mail.plaintext{/lang}{if $count == 1 && !$guestTimesTriggered} +{lang}{$notificationContent[variables][languageItemPrefix]}.commentResponse.mail.plaintext{/lang}{if $count == 1 && !$guestTimesTriggered} {* this line ends with a space *} {@$event->getUserNotificationObject()->getMailText($mimeType)}{/if} {* this line ends with a space *} {else} -- 2.20.1