Uploaded image for project: 'Documentation (moved to puppet.atlassian.net)'
  1. Documentation (moved to puppet.atlassian.net)
  2. DOCUMENT-779

Line ending documentation on file resources for windows is inaccurate

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • Puppet Language
    • None
    • puppet --version
      4.10.8

    • Hide

      The documentation around how Puppet handles line endings in EPP templates is consistent with Puppet's expected behavior.

      Show
      The documentation around how Puppet handles line endings in EPP templates is consistent with Puppet's expected behavior.
    • Needs Assessment

    Description

      page
      https://puppet.com/docs/puppet/4.10/resources_file_windows.html#handling-line-endings

      expected result
      Having \r\n in the template is supposed to add CRLF but this comes back untranslated

      actual result
      Following the instructions gives one long line of text or one long line of text with literal \r\n

      testcase
      Escape codes in the template doesn't work:

      test.epp:

      line 1\r\n
      line 2\r\n
      :P\r\n
      

      test.txt:

      line 1\r\nline 2\r\n:P\r\n
      

      Attachments

        Issue Links

          Activity

            People

              garrett.guillotte Garrett Guillotte
              williams.geoff Geoff Williams
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support