From 2b8a7e88e9be17b3e37575a7ee9b1f1d9a795d06 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Fri, 6 Nov 2015 09:31:20 -0800 Subject: [PATCH] Fix escaping of newline carriage return characters in the documentation --- lib/ansible/modules/windows/win_template.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ansible/modules/windows/win_template.py b/lib/ansible/modules/windows/win_template.py index e8323362dd6..4ffcaafe2c7 100644 --- a/lib/ansible/modules/windows/win_template.py +++ b/lib/ansible/modules/windows/win_template.py @@ -15,7 +15,7 @@ # You should have received a copy of the GNU General Public License # along with Ansible. If not, see . -DOCUMENTATION = ''' +DOCUMENTATION = r''' --- module: win_template version_added: "1.9.2" @@ -47,8 +47,8 @@ notes: - "templates are loaded with C(trim_blocks=True)." - By default, windows line endings are not created in the generated file. - "In order to ensure windows line endings are in the generated file, add the following header - as the first line of your template: #jinja2: newline_sequence:'\r\n' and ensure each line - of the template ends with \r\n" + as the first line of your template: #jinja2: newline_sequence:'\\\\r\\\\n' and ensure each line + of the template ends with \\\\r\\\\n" - Beware fetching files from windows machines when creating templates because certain tools, such as Powershell ISE, and regedit's export facility add a Byte Order Mark as the first character of the file, which can cause tracebacks.