From 4b5874d6065c673f6e3e59a405cdc9d142267190 Mon Sep 17 00:00:00 2001 From: Raimond Spekking Date: Thu, 29 Jan 2009 07:01:51 +0000 Subject: [PATCH] Add a newline in front of the message to avoid wrong parsing when the message text starts with line-start-markup such as a table or list. The missing newline was the real culprit of the breakage seen in http://www.mediawiki.org/wiki/Special:Code/MediaWiki/45651#c1531 --- includes/OutputPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 0513f1421d..26b46987aa 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -1846,7 +1846,7 @@ class OutputPage { $args = array(); $name = $spec; } - $s = str_replace( '$' . ($n+1), wfMsgExt( $name, $options, $args ), $s ); + $s = str_replace( '$' . ( $n + 1 ), "\n" . wfMsgExt( $name, $options, $args ), $s ); } $this->addHTML( $this->parse( $s, /*linestart*/true, /*uilang*/true ) ); } -- 2.20.1