preserve newline before braced variables
authorGabriel Wicke <gwicke@users.mediawiki.org>
Wed, 12 May 2004 12:48:36 +0000 (12:48 +0000)
committerGabriel Wicke <gwicke@users.mediawiki.org>
Wed, 12 May 2004 12:48:36 +0000 (12:48 +0000)
includes/Parser.php

index 79aa4e7..b49b49f 100644 (file)
@@ -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