Standardizing linebreaks
authorMr. E23 <e23@users.mediawiki.org>
Sun, 14 Mar 2004 00:55:43 +0000 (00:55 +0000)
committerMr. E23 <e23@users.mediawiki.org>
Sun, 14 Mar 2004 00:55:43 +0000 (00:55 +0000)
includes/Parser.php

index 360c126..16ab810 100644 (file)
@@ -1422,6 +1422,7 @@ class Parser
                }
                
                $stripState = false;
+               $text = str_replace("\r\n", "\n", $text);
                $text = $this->strip( $text, $stripState, false );
                $text = $this->pstPass2( $text, $user );
                $text = $this->unstrip( $text, $stripState );