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