Hi,

Been meaning to say I discovered a few days ago that you can set the 
following in your j2 templates to ensure windows-style line endings

#jinja2: newline_sequence:'\r\n'

I still want to do automatic detection of this but there is at least a 
workaround (which would likely be backwardly compatible once auto detection 
is in place).

Jon



On Thursday, December 18, 2014 at 5:48:02 PM UTC, Joey wrote:
>
> I'm using win_template to copy a text file with a couple variables to a 
> windows client. However, it seems to be removing all lines breaks from the 
> file. I tried using unix2dos on the template, as well as adding 
> "#jinja2:trim_blocks: 
> False", but neither one seemed to work. Any other ideas?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/1da08be1-7573-495a-9ea7-d573fe5e9858%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to