title: Remove the empty lines left by Jinja2 variable definitions
body: <p>When writing template files using Jinja2 for Saltstack, I often define some variables at the beginning of the file. For example:</p>
  
  <pre><code>{% set ip = grains['ip4_interfaces']['eth1'][0] %}
  {% set domain = pillar['company_domain'] %}
  {% set version = pillar['site_version'] %}
  {% set site_url = 'www.' + domain %}
  
  [...]
  </code></pre>
  
  <p>Everything works fine but when opening the generated file, I get a block of empty lines where the jinja code was. </p>
  
  <p>Am I doing something wrong ?
  If not, is there any way to get rid of those empty lines when using templates ?</p>