strip "bug" ?
| From: | Greg Stark | Date: | Mon, 12 May 2003 20:19:52 +0000 |
| Subject: | strip "bug" ? | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-9531@lists.php.net to get a copy of this message | ||
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.
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