cvs: smarty / NEWS /libs Smarty_Compiler.class.php

"Messju Mohr" <[email protected]>
Newsgroups gmane.comp.php.cvs.smarty
Message-ID <cvsmessju1061974465@cvsserver>
messju		Wed Aug 27 04:54:25 2003 EDT

  Modified files:              
    /smarty	NEWS 
    /smarty/libs	Smarty_Compiler.class.php 
  Log:
  fixed removal of leading/trailing newlines in {strip}-blocks
  
  
  
Index: smarty/NEWS
diff -u smarty/NEWS:1.392 smarty/NEWS:1.393
--- smarty/NEWS:1.392	Mon Aug 25 09:37:27 2003
+++ smarty/NEWS	Wed Aug 27 04:54:24 2003
@@ -1,3 +1,4 @@
+  - fixed removal of leading/trailing newlines in {strip}-blocks (messju)
   - fixed proper escaping of " and ' with escape:javascript (messju)
   - fixed bug in traversal of $smarty->plugins_dir-array. now the
     first matching plugin is taken (messju)
Index: smarty/libs/Smarty_Compiler.class.php
diff -u smarty/libs/Smarty_Compiler.class.php:1.277 smarty/libs/Smarty_Compiler.class.php:1.278
--- smarty/libs/Smarty_Compiler.class.php:1.277	Wed Aug 20 10:48:35 2003
+++ smarty/libs/Smarty_Compiler.class.php	Wed Aug 27 04:54:25 2003
@@ -39,7 +39,7 @@
  * @package Smarty
  */
 
-/* $Id: Smarty_Compiler.class.php,v 1.277 2003/08/20 14:48:35 messju Exp $ */
+/* $Id: Smarty_Compiler.class.php,v 1.278 2003/08/27 08:54:25 messju Exp $ */
 
 /**
  * Template compiling class
@@ -335,7 +335,7 @@
             $strip_tags = $_match[0];
             $_strip_search = array(
                 '%([^\\\\]\?>)\n%', // remove newlines after PHP close tags
-                "!{$ldq}/?strip{$rdq}|[\t ]+$|^[\t ]+!m", // remove leading/trailing space chars
+                "!{$ldq}/?strip{$rdq}|\s+$|^\s+!m", // remove leading/trailing space chars
                 '%[\r\n]+%m', // remove CRs and newlines
                 '%([^\\\\]\?>)%'); // replace newlines after PHP close tags
             $_strip_replace = array(

-- 
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.