mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Windows: Use the correct newline sequence for the platform (#21846)
This change to the template action plugin make template use the platform's native newline_sequence for Jinja. We also added the option `newline_sequence` to change the newline sequence using by Jinja if you need to use another newline sequence than the platform default. This was previously discussed in https://github.com/ansible/ansible/issues/16255#issuecomment-278289414 And also relates to issue #21128
This commit is contained in:
3
test/integration/targets/template/files/foo.dos.txt
Normal file
3
test/integration/targets/template/files/foo.dos.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
BEGIN
|
||||
templated_var_loaded
|
||||
END
|
||||
3
test/integration/targets/template/files/foo.unix.txt
Normal file
3
test/integration/targets/template/files/foo.unix.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
BEGIN
|
||||
templated_var_loaded
|
||||
END
|
||||
Reference in New Issue
Block a user