Merge "i18n: Add line-break in email notificaton for minor edits"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Mon, 1 Apr 2019 16:39:45 +0000 (16:39 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 1 Apr 2019 16:39:45 +0000 (16:39 +0000)
includes/mail/EmailNotification.php

index 4d1b855..987239b 100644 (file)
@@ -328,8 +328,9 @@ class EmailNotification {
 
                $keys['$PAGETITLE'] = $this->title->getPrefixedText();
                $keys['$PAGETITLE_URL'] = $this->title->getCanonicalURL();
-               $keys['$PAGEMINOREDIT'] = "\n" . ( $this->minorEdit ?
-                       wfMessage( 'enotif_minoredit' )->inContentLanguage()->text() : '' );
+               $keys['$PAGEMINOREDIT'] = $this->minorEdit ?
+                       "\n\n" . wfMessage( 'enotif_minoredit' )->inContentLanguage()->text() :
+                       '';
                $keys['$UNWATCHURL'] = $this->title->getCanonicalURL( 'action=unwatch' );
 
                if ( $this->editor->isAnon() ) {