mirror of https://github.com/ansible/ansible.git
Set Jinja2's keep_trailing_newline=True in template_from_string.
Without this setting, the newline idempotence of scalar strings changes depending on whether or not they contain any Jinja2 template blocks.pull/8134/head
parent
7c6175e780
commit
7a8eb0b670
@ -1 +1,3 @@
|
||||
templated_var: templated_var_loaded
|
||||
newline_template_string: "Hello {{ 'World' }}\n"
|
||||
newline_no_template_string: "Hello World\n"
|
||||
|
Loading…
Reference in New Issue