From eeaa1c3a3220e3735445d094dc7d2cd9ac07b621 Mon Sep 17 00:00:00 2001 From: Stephan Springer Date: Sat, 4 Jan 2020 14:00:28 +0100 Subject: Separate text from footer in notification emails Signed-off-by: Lukas Fleischer --- aurweb/scripts/notify.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/aurweb/scripts/notify.py b/aurweb/scripts/notify.py index 591b5ca4..6c3be222 100755 --- a/aurweb/scripts/notify.py +++ b/aurweb/scripts/notify.py @@ -151,7 +151,7 @@ class CommentNotification(Notification): body = self._l10n.translate( '{user} [1] added the following comment to {pkgbase} [2]:', lang).format(user=self._user, pkgbase=self._pkgbase) - body += '\n\n' + self._text + '\n\n' + body += '\n\n' + self._text + '\n\n-- \n' dnlabel = self._l10n.translate('Disable notifications', lang) body += self._l10n.translate( 'If you no longer wish to receive notifications about this ' @@ -196,7 +196,7 @@ class UpdateNotification(Notification): '{pkgbase} [2].', lang).format( user=self._user, pkgbase=self._pkgbase) - body += '\n\n' + body += '\n\n-- \n' dnlabel = self._l10n.translate('Disable notifications', lang) body += self._l10n.translate( 'If you no longer wish to receive notifications about this ' @@ -362,6 +362,7 @@ class DeleteNotification(Notification): dnlabel = self._l10n.translate('Disable notifications', lang) return self._l10n.translate( '{user} [1] merged {old} [2] into {new} [3].\n\n' + '-- \n' 'If you no longer wish receive notifications about the ' 'new package, please go to [3] and click "{label}".', lang).format(user=self._user, old=self._old_pkgbase, -- cgit v1.2.3-24-g4f1b