From 7b053cc92c6a1e8b48301817643c5e62d01f7dd8 Mon Sep 17 00:00:00 2001
From: Dries Buytaert
Date: Fri, 1 Jun 2007 09:39:10 +0000
Subject: - Patch #103079 by yched: check_plain('') returned
---
modules/filter/filter.module | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'modules')
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', "$1
\n", $chunk); // 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('|\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);
$chunk = str_replace('
', '
', $chunk);
--
cgit v1.2.3