We heavily use Smarty for all our front end templating. I have observed the following situation:
When my Smarty template is similar to as follows:
<li>
{if $a == 'A'}
{$var1}
{else}
{$var2}
{/if}
<br><span>SUBTEXT</span>
</li>
The final HTML which is delivered to the browser is:
<li>
65
<br><span>SUBTEXT</span>
</li>
I would expect it to be more clean and something like:
<li>
65<br><span>SUBTEXT</span>
</li>
or better:
<li>65<br><span>SUBTEXT</span></li>
Anyway I can do this with some configuration settings in Smarty 3? Any setting to format and clean the final HTML created?
Thanks