title: whats the best practice or rule to write the if condition or block in smarty template?
body: <p>When I am writing my if block open and close in one line then it creates a problem while printing the variable, but not when I am using like this:          </p>
  
  <pre><code>{if isset($title)}
    {$title}
  {/if}
  </code></pre>
  
  <p>Problem with:</p>
  
  <pre><code>{if isset($title)}{$title}{/if}
  </code></pre>
  
  <p>if I use the code in single line the variable prints unnecessary spaces at the end of string, I have tried by using strip and trim but no use.</p>
  
  <p><strong>What's the reason behind this problem?</strong></p>