? autop-pcre-limit.patch ? autop-pcre-limit_2.patch ? modules/filter/.filter.module.rej.swp ? sites/default/files ? sites/default/modules ? sites/default/settings.php Index: modules/filter/filter.module =================================================================== RCS file: /cvs/drupal/drupal/modules/filter/filter.module,v retrieving revision 1.204.2.8 diff -u -p -r1.204.2.8 filter.module --- modules/filter/filter.module 10 Dec 2008 22:30:14 -0000 1.204.2.8 +++ modules/filter/filter.module 25 May 2009 12:30:08 -0000 @@ -911,7 +911,8 @@ function _filter_autop($text) { $chunk = preg_replace('!(<'. $block .'[^>]*>)!', "\n$1", $chunk); // Space things out a little $chunk = preg_replace('!()!', "$1\n\n", $chunk); // Space things out a little $chunk = preg_replace("/\n\n+/", "\n\n", $chunk); // take care of duplicates - $chunk = preg_replace('/\n?(.+?)(?:\n\s*\n|\z)/s', "

$1

\n", $chunk); // make paragraphs, including one at the end + $chunk = preg_replace('/^\n|\n\s*\n$/', '', $chunk); + $chunk = '

'. preg_replace('/\n\s*\n\n?(.)/', "

\n

$1", $chunk) ."

\n"; // make paragraphs, including one at the end $chunk = preg_replace('|

\s*

\n|', '', $chunk); // under certain strange conditions it could create a P of entirely whitespace $chunk = preg_replace("|

(|", "$1", $chunk); // problem with nested lists $chunk = preg_replace('|

]*)>|i', "

", $chunk);