diff --git a/core/templates/altmail.php b/core/templates/altmail.php
index 00b67bee45..7776919ea3 100644
--- a/core/templates/altmail.php
+++ b/core/templates/altmail.php
@@ -1,7 +1,8 @@
t("Hey there,\n\njust letting you know that %s shared %s with you.\nView it: %s\n\n", array($_['user_displayname'], $_['filename'], $_['link'])));
if ( isset($_['expiration']) ) {
- print_unescaped($l->t("The share will expire on %s.\n\n", array($_['expiration'])));
+ print_unescaped($l->t("The share will expire on %s.", array($_['expiration'])));
+ print_unescaped('\n\n');
}
p($l->t("Cheers!"));
?>
diff --git a/core/templates/mail.php b/core/templates/mail.php
index 40092f5491..4fa54aa528 100644
--- a/core/templates/mail.php
+++ b/core/templates/mail.php
@@ -14,7 +14,8 @@
t('Hey there,
just letting you know that %s shared »%s« with you.
View it!
', array($_['user_displayname'], $_['filename'], $_['link'])));
if ( isset($_['expiration']) ) {
- print_unescaped($l->t("The share will expire on %s.
", array($_['expiration'])));
+ p($l->t("The share will expire on %s.", array($_['expiration'])));
+ print_unescaped('
');
}
p($l->t('Cheers!'));
?>