diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-06-01 09:39:10 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-06-01 09:39:10 +0000 |
commit | 7b053cc92c6a1e8b48301817643c5e62d01f7dd8 (patch) | |
tree | a33e06dbe0dd99f86dd31a5360416acebf6d3b9b /modules | |
parent | 02b9c0e0cd7f423dc3ca9654780c31ea942e9323 (diff) | |
download | brdo-7b053cc92c6a1e8b48301817643c5e62d01f7dd8.tar.gz brdo-7b053cc92c6a1e8b48301817643c5e62d01f7dd8.tar.bz2 |
- Patch #103079 by yched: check_plain('') returned </p>
Diffstat (limited to 'modules')
-rw-r--r-- | modules/filter/filter.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/filter/filter.module b/modules/filter/filter.module index 9a4239649..74ec80484 100644 --- a/modules/filter/filter.module +++ b/modules/filter/filter.module @@ -1254,7 +1254,7 @@ function _filter_autop($text) { $chunk = preg_replace('!(</'. $block .'>)!', "$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', "<p>$1</p>\n", $chunk); // make paragraphs, including one at the end - $chunk = preg_replace('|<p>\s*?</p>\n|', '', $chunk); // under certain strange conditions it could create a P of entirely whitespace + $chunk = preg_replace('|<p>\s*</p>\n|', '', $chunk); // under certain strange conditions it could create a P of entirely whitespace $chunk = preg_replace("|<p>(<li.+?)</p>|", "$1", $chunk); // problem with nested lists $chunk = preg_replace('|<p><blockquote([^>]*)>|i', "<blockquote$1><p>", $chunk); $chunk = str_replace('</blockquote></p>', '</p></blockquote>', $chunk); |