title: Jinja2 trim CR when rendering
body: <p>I was trying to figure out why Jinja2 is triming my \r out of my model. I've got something like this :</p>
  <pre><code>Something useful\r\n
  And again\r\n
  </code></pre>
  <p>Which then is rendered like this :</p>
  <pre><code>Something useful\n
  And again\n
  </code></pre>
  <p>And this seems to be known as this link shows : <a href="https://github.com/ansible/ansible/issues/22676" rel="nofollow noreferrer">https://github.com/ansible/ansible/issues/22676</a></p>
  <p>As drewdogg is demonstrating here :</p>
  <pre><code>&gt;&gt;&gt; t = Template(&quot;{{ 'lorem\r\nipsum' }}&quot;)
  &gt;&gt;&gt; t.render()
  u'lorem\nipsum'
  </code></pre>
  <p>Why is this happening? Can I do something to preserve my \r that are necessary for me? The only solutions I came accross was to explicitly write :</p>
  <pre><code>{{ '\r\n' }}
  </code></pre>
  <p>Or worse replace, either in Jinja2 or Python3...</p>
  <p>Has anybody came over this problem and found a solution?</p>
  <p>Thanks a lot :)</p>