From ffa4c84a3136ece9a25a40daad1194047da8fce4 Mon Sep 17 00:00:00 2001 From: Derek Jones Date: Thu, 11 Dec 2008 16:37:04 +0000 Subject: fixed   cleanup preceding block elements, regex was using [] instead of () --- system/libraries/Typography.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'system/libraries/Typography.php') diff --git a/system/libraries/Typography.php b/system/libraries/Typography.php index 0c4a978aa..a4d1e3548 100644 --- a/system/libraries/Typography.php +++ b/system/libraries/Typography.php @@ -196,9 +196,9 @@ class CI_Typography { // Clean up stray paragraph tags that appear before block level elements '#

<('.$this->block_elements.')#' => '<$1', - + // Clean up stray non-breaking spaces preceeding block elements - '#[  ]+<('.$this->block_elements.')#' => ' <$1', + '#( \s*)+<('.$this->block_elements.')#' => ' <$2', // Replace the temporary markers we added earlier '/\{@TAG\}/' => '<', -- cgit v1.2.3-24-g4f1b