\n rather than \n (although they both seem to work)
authorGabriel Wicke <gwicke@users.mediawiki.org>
Sun, 2 May 2004 23:53:10 +0000 (23:53 +0000)
committerGabriel Wicke <gwicke@users.mediawiki.org>
Sun, 2 May 2004 23:53:10 +0000 (23:53 +0000)
includes/Parser.php

index cd1469b..159b271 100644 (file)
@@ -1515,7 +1515,7 @@ class Parser
                $htmlattrs = $this->getHTMLattrs () ;
 
                # Remove HTML comments
-               $text = preg_replace( "/(\n *<!--.*--> *(?=\n)|<!--.*-->)/sU", "$2", $text );
+               $text = preg_replace( "/(\\n *<!--.*--> *(?=\\n)|<!--.*-->)/sU", "$2", $text );
 
                $bits = explode( "<", $text );
                $text = array_shift( $bits );