diff --git a/NEWS b/NEWS index fa550ff1..4ba1ea0b 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,7 @@ + +- fix handling of non-empty
-tags and empty - and + !is", $source, $match); + preg_match_all("!!is", $source, $match); $_script_blocks = $match[0]; - $source = preg_replace("!!is", + $source = preg_replace("!!is", '@@@SMARTY:TRIM:SCRIPT@@@', $source); // Pull out the pre blocks - preg_match_all("!.*?!is", $source, $match); + preg_match_all("!]*?>.*?!is", $source, $match); $_pre_blocks = $match[0]; - $source = preg_replace("!.*?!is", + $source = preg_replace("!]*?>.*?!is", '@@@SMARTY:TRIM:PRE@@@', $source); - + // Pull out the textarea blocks - preg_match_all("!]+>.*?!is", $source, $match); + preg_match_all("!]*?>.*?!is", $source, $match); $_textarea_blocks = $match[0]; - $source = preg_replace("!]+>.*?!is", + $source = preg_replace("!]*?>.*?!is", '@@@SMARTY:TRIM:TEXTAREA@@@', $source); // remove all leading spaces, tabs and carriage returns NOT
.*?
]*?>.*?