From fd7106bf4cb6621672389f101f54f1f2eb1b0cb2 Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Wed, 12 May 2004 12:48:36 +0000 Subject: [PATCH] preserve newline before braced variables --- includes/Parser.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/Parser.php b/includes/Parser.php index 79aa4e7244..b49b49f28e 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -1508,6 +1508,7 @@ class Parser # Run full parser on the included text $text = $this->strip( $text, $this->mStripState ); $text = $this->internalParse( $text, (bool)$newline, $assocArgs ); + if(!empty($newline)) $text = "\n".$text; # Add the result to the strip state for re-inclusion after # the rest of the processing -- 2.20.1