cvs: smarty /libs/plugins outputfilter.trimwhitespace.php
"boots" <[email protected]> Fri, 01 Dec 2006 01:06:13 -0000
| Newsgroups | gmane.comp.php.cvs.smarty |
|---|---|
| Message-ID | <cvsboots1164935173@cvsserver> |
boots Fri Dec 1 01:06:13 2006 UTC
Modified files:
/smarty/libs/plugins outputfilter.trimwhitespace.php
Log:
Fixed replacement bug introduced by last changes.
Thanks to Spuerhund from the forums.
http://cvs.php.net/viewvc.cgi/smarty/libs/plugins/outputfilter.trimwhitespace.php?r1=1.11&r2=1.12&diff_format=u
Index: smarty/libs/plugins/outputfilter.trimwhitespace.php
diff -u smarty/libs/plugins/outputfilter.trimwhitespace.php:1.11 smarty/libs/plugins/outputfilter.trimwhitespace.php:1.12
--- smarty/libs/plugins/outputfilter.trimwhitespace.php:1.11 Fri Jun 23 08:41:33 2006
+++ smarty/libs/plugins/outputfilter.trimwhitespace.php Fri Dec 1 01:06:13 2006
@@ -50,13 +50,13 @@
$source = trim(preg_replace('/((?<!\?>)\n)[\s]+/m', '\1', $source));
// replace textarea blocks
- smarty_outputfilter_trimwhitespace_replace("@@@SMARTY:TRIM:TEXTAREA@@@",$_script_blocks, $source);
+ smarty_outputfilter_trimwhitespace_replace("@@@SMARTY:TRIM:TEXTAREA@@@",$_textarea_blocks, $source);
// replace pre blocks
smarty_outputfilter_trimwhitespace_replace("@@@SMARTY:TRIM:PRE@@@",$_pre_blocks, $source);
// replace script blocks
- smarty_outputfilter_trimwhitespace_replace("@@@SMARTY:TRIM:SCRIPT@@@",$_textarea_blocks, $source);
+ smarty_outputfilter_trimwhitespace_replace("@@@SMARTY:TRIM:SCRIPT@@@",$_script_blocks, $source);
return $source;
}
--
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php