Re: [SMARTY] strip "bug" ?
| From: | messju mohr | Date: | Mon, 12 May 2003 21:21:50 +0000 |
| Subject: | Re: [SMARTY] strip "bug" ? | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-9534@lists.php.net to get a copy of this message | ||
On Mon, May 12, 2003 at 04:19:52PM -0400, Greg Stark wrote:
>
> Strip seems to remove more spaces than really necessary. Specifically it
> removes spaces within a line around {} variables. This makes it hard to do
> something like this:
>
> {strip}
> <a href="foo...">
> Hello {$user}, there are {$bar} things in your shopping cart.
> </a>
> {/strip}
>
> Which will print:
>
> Hello Bill, there are 0things in your shopping cart.
this seems to be fixed in cvs. give it a try if you want, although
there is other stuff in the cvs-version right now that is a bit
...um... unstable.
> I don't really feel like putting an after every thing like this. In any
> case it doesn't match the documentation of {strip} which says it only removes
> newlines and indentation.
>
> --
> greg