title: Jinja - Indentation in a recursive loop with dictionary
body: <p>I'm trying to write a template using ninja. But I can't display the right indentation! I tried a lot of stuffs but I couldn't get the expected result.
  I have a dictionary like this:</p>
  
  <pre><code>videoNode = {'type': "VideoLoader",
              'config': {'type': "url",
                         'source': "blabla",
                         'frameBufferSize': 50,
                        }
              }
  </code></pre>
  
  <p>I would like to display something like that</p>
  
  <pre><code>queueVideo1:
      type: VideoLoader
      config:
          source: blabla
          type: url
          frameBufferSize: 50
  </code></pre>
  
  <p>but all I can get is:</p>
  
  <pre><code>queueVideo1:
      type: VideoLoader
  config:
     source: blabla
  type: url
  frameBufferSize: 50
  </code></pre>
  
  <p>Here is my file:</p>
  
  <pre><code>{%- for key, value in videoNodes.iteritems() recursive -%}
      {%+ if value is mapping -%}
          {{ key }}:
          {{ loop(value.iteritems()) }}
      {%- else -%}
         {{ key }}: {{value}}
      {% endif %}
  {%- endfor -%}
  </code></pre>