title: newline and dash not working correctly in jinja
body: <p>How could I generate the expected output ? Thanks</p>
  
  <h1>jinja template</h1>
  
  <pre><code>{%- for field in fields -%}
  
  -
    name: {{field}}
    type: string
  
  
  
  {%- endfor -%}
  </code></pre>
  
  <h1>output</h1>
  
  <pre><code>-
    name: operating revenue
    type: string-
    name: gross operating profit
    type: string-
  </code></pre>
  
  <h1>expected output</h1>
  
  <pre><code>-
    name: operating revenue
    type: string
  -
    name: gross operating profit
    type: string
  </code></pre>
  
  <h1>code</h1>
  
  <pre><code>from jinja2 import Template
  
  fields = ["operating revenue", "gross operating profit", "EBITDA", "operating profit after depreciation", "EBIT", "date"]
  template_file = open('./fields_template.jinja2').read()
  template = Template(template_file)
  html_rendered = template.render(fields=fields)
  print(html_rendered)
  </code></pre>