Fix formatting of text/plain notifications
authorTim Düsterhus <duesterhus@woltlab.com>
Thu, 2 Jul 2020 09:55:33 +0000 (11:55 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 2 Jul 2020 09:56:01 +0000 (11:56 +0200)
see #325

com.woltlab.wcf/templates/email_notification_comment.tpl
com.woltlab.wcf/templates/email_notification_commentResponse.tpl
com.woltlab.wcf/templates/email_notification_commentResponseOwner.tpl
com.woltlab.wcf/templates/email_notification_moderationQueueComment.tpl
com.woltlab.wcf/templates/email_notification_moderationQueueCommentResponse.tpl

index 6dba9de9e504f13ef92b9bbfca4f5503c54b5d57..595d7a2b1ef8dd0e0fca58dbe004c755d86067ee 100644 (file)
@@ -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}
index 1d143d5dda047af7aa7ba3e4330e9e5b3f3eb590..6f21f85bbe71f5c99509fd3545857f0799bf19b3 100644 (file)
@@ -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}
index 1d143d5dda047af7aa7ba3e4330e9e5b3f3eb590..6f21f85bbe71f5c99509fd3545857f0799bf19b3 100644 (file)
@@ -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}
index 62efef8d381c69a7f0087dd900c600a27eb043f2..afcfff1e638c842d50ea61cf1915321b3fd485c6 100644 (file)
@@ -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}
index 873c5f0f1b72fcf946200e56a3e3a43674212271..7939599e260aea62425d7a5fe45f4d42429a60ec 100644 (file)
@@ -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}