accidentially removed nl fix
authorGabriel Wicke <gwicke@users.mediawiki.org>
Fri, 14 May 2004 01:18:12 +0000 (01:18 +0000)
committerGabriel Wicke <gwicke@users.mediawiki.org>
Fri, 14 May 2004 01:18:12 +0000 (01:18 +0000)
includes/Parser.php

index 05c6786..b119c52 100644 (file)
@@ -1552,6 +1552,7 @@ class Parser
                        # Run full parser on the included text
                        $text = $this->strip( $text, $this->mStripState );
                        $text = $this->internalParse( $text, (bool)$newline, $assocArgs, false );
+                       if(!empty($newline)) $text = "\n".$text;
 
                        # Add the result to the strip state for re-inclusion after
                        # the rest of the processing