Re: [SMARTY-DEV] strip problem again

From: Date: Thu, 28 Aug 2003 15:04:08 +0000
Subject: Re: [SMARTY-DEV] strip problem again
References: 1  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-1815@lists.php.net to get a copy of this message
On Thu, Aug 28, 2003 at 01:41:14PM +0400, Konstantin A. Pelepelin wrote: > Template: > > {strip} > <table> > <tr> > <td> > {"test text"} > {"test text"} > {include file="test.html"} > {include file="test.html"} > {"test text"} > </td> > </tr> > </table> > {/strip} > > Template test.html: > TEST > (no spaces and no newline after the word TEST) > > Result: > > <table><tr><td>test texttest textTEST TEST > test text</td></tr></table> > > As you see, tabs _AFTER_ the include are not stripped. > They are not stripped in compiled template too. Why is this inconsistent? simply: a bug. Smarty_Compiler.class.php 1.278 has this fixed already. greetings messju > <table><tr><td><?php echo 'test text'; echo 'test > text'; > $_smarty_tpl_vars = > $this->_tpl_vars;$this->_smarty_include(array('smarty_include_tpl_file' => > "test/test.html", 'smarty_include_vars' => array()));$this->_tpl_vars > = > $_smarty_tpl_vars;unset($_smarty_tpl_vars);?> > <?php $_smarty_tpl_vars = > $this->_tpl_vars;$this->_smarty_include(array('smarty_include_tpl_file' > => "test/test.html", 'smarty_include_vars' => > array()));$this->_tpl_vars = $_smarty_tpl_vars;unset($_smarty_tpl_vars);?> > <?php echo 'test text'; ?> > </td></tr></table> > > > /Smarty.class.php/1.441/Mon Aug 25 07:41:18 2003// > /Smarty_Compiler.class.php/1.277/Mon Aug 25 07:41:18 2003// > > > WBR, > Konstantin A. Pelepelin > > -- > Smarty Development Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.smarty.dev (#1815) next »