mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 22:33:25 +00:00
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.
This commit is contained in:
@@ -1 +1,3 @@
|
||||
templated_var: templated_var_loaded
|
||||
newline_template_string: "Hello {{ 'World' }}\n"
|
||||
newline_no_template_string: "Hello World\n"
|
||||
|
||||
Reference in New Issue
Block a user