title: Stripping whitespace in jinja2 & flask...why do I still need the minus sign?
body: <p>In my <strong>init</strong>.py file I have:</p>
  
  <pre><code>app.jinja_env.trim_blocks = True
  app.jinja_env.lstrip_blocks = True
  </code></pre>
  
  <p>I expect in my jinja2 template that whitespace will be trimmed, so that:</p>
  
  <pre><code>&lt;div&gt;
  {% if x == 3 %}
  &lt;small&gt;{{ x }}&lt;/small&gt;
  {% endif %}
  &lt;/div&gt;
  </code></pre>
  
  <p>will render as:</p>
  
  <pre><code>&lt;div&gt;
  &lt;small&gt;3&lt;/small&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Instead, I get extra whitespace:</p>
  
  <pre><code>&lt;div&gt;
  
  &lt;small&gt;3&lt;/small&gt;
  
  &lt;/div&gt;
  </code></pre>
  
  <p>Why doesn't trim_blocks and lstrip_blocks trim the whitespace?</p>