Strip whitespace between smarty tags
Rainer Müller <[email protected]>
| Newsgroups | gmane.comp.php.smarty.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi,
It would be great to strip out whitespace between smarty tags, so that
it does not end up in the output.
Example:
{foreach name=example from=$events item=item}
{if $smarty.foreach.example.first}foo{/if}
...
{/foreach}
The indentation before {if} is in the output and now the indentation in
html source looks very strange.
I don't want to use unindented smarty code in my templates, because this
would decrease readability.
Rainer
--
Smarty Development Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php