strip problem again

From: Date: Thu, 28 Aug 2003 09:41:14 +0000
Subject: strip problem again
Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-1813@lists.php.net to get a copy of this message
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? <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

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