]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #1398: autop() doesn't call missing clean_pre() function.
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 1 Feb 2010 17:51:15 +0000 (17:51 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 1 Feb 2010 17:51:15 +0000 (17:51 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@3890 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/input.php

index 7c5fd58c41085a090955bd356e160a850703d9d6..67a61446db66704c29115958999828bcc22f6fde 100644 (file)
@@ -173,9 +173,10 @@ function autop($pee, $br = 1) {
        }
        $pee = preg_replace('!(</?' . $allblocks . '[^>]*>)\s*<br />!', "$1", $pee);
        $pee = preg_replace('!<br />(\s*</?(?:p|li|div|dl|dd|dt|th|pre|td|ul|ol)[^>]*>)!', '$1', $pee);
-       if (strpos($pee, '<pre') !== false) {
-               $pee = preg_replace_callback('!(<pre.*?>)(.*?)</pre>!is', 'clean_pre', $pee );
-       }
+//     if (strpos($pee, '<pre') !== false) {
+//             mind the space between the ? and >.  Only there because of the comment.
+//             $pee = preg_replace_callback('!(<pre.*? >)(.*?)</pre>!is', 'clean_pre', $pee );
+//     }
        $pee = preg_replace( "|\n</p>$|", '</p>', $pee );
 
        return $pee;