Re: [SMARTY-DEV] strip problem again

From: Date: Tue, 02 Sep 2003 07:58:34 +0000
Subject: Re: [SMARTY-DEV] strip problem again
References: 1 2 3  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-1838@lists.php.net to get a copy of this message
> i committed an additionoal fix for strip. the extra > linefeeds after "?>" are now only emitted out of > {strip}...{/strip} context. this should make monte's > patch from the thread > http://lists.php.net/article.php?group=php.smarty.dev&art >icle=1218 obsolete and also should fix the issues that > came along with it. If I understand well, now (outside of strip) there is no extra newline after {include},{section},{/section}, etc. but there is extra newline after {$var} or custom function. before {if true} inside if {/if} after before {textformat} inside textformat {/textformat} after Output: before inside if after before inside textformat after It should be made consistent, I think. Or it should be clearly stated in the documentation. > everybody: please test and break it. :) As you wish! :) Obviously, this doesn't work: {strip} - 1 level strip - {strip} - 2 level strip - {/strip} {/strip} I'd disallow nested strip, since it has no sense. Konstantin A. Pelepelin

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