Forrest
  1. Forrest
  2. FOR-492

Inconsistent Line Endings in generated sites

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Blocker Blocker
    • Resolution: Incomplete
    • Affects Version/s: 0.7
    • Fix Version/s: 0.8
    • Component/s: Core operations
    • Labels:
      None
    • Environment:
      Windows (with or without CYGWIN)

      Description

      Sites generated by Forrest have inconsistent line endings when created on a Windows platform.

      I did a little testing, here's what I have discovered so far:
       
      - any file that is processed by XSLT has the line endings problem
      - on investigating one such file (index.html) I discovered that the generated comments from site2xhtml.xsl (such as breadtrail comment) have LF endings whilst most other lines have CRLF endings.
       
      I'm running on Windows, and get the same results whether I run under
      CYGWIN or DOS.
       
      To reproduce run "forrest site" in any site and check out the generated docs in build/site.

      This appears to a result of the XSLT transformations. xsl:comments retain the line endings contained in the XSL file, whilst other line endings are set to the environment default.

      Is there a way to tell the XSLT transformer what line endings to use?
      1. index.html
        10 kB
        Gavin
      2. FOR-492-fixcrlf.txt
        0.5 kB
        David Crossley

        Issue Links

          Activity

          Ross Gardler created issue -
          Ross Gardler made changes -
          Field Original Value New Value
          Fix Version/s 0.8 [ 10040 ]
          Summary Inconsitent Line Endings in generated sites Inconsistent Line Endings in generated sites
          Description Sites generated by Forrest have inconsitent line endings when created on a Windows platform.

          I did a little testing, here's what I have discovered so far:
           
          - any file that is processed by XSLT has the line endings problem
          - on investigating one such file (index.html) I discovered that the generated comments from site2xhtml.xsl (such as breadtrail comment) have
           CRLF endings whilst most other lines have LF endings.
           
          I'm running on Windows, and get the same results whether I run under
          CYGWIN or DOS.
           
          To reproduce cd into any plugin directory, do "ant docs" and check out
          the generated docs in build/site.

          This appears to a result of the XSLT transformations. xsl:comments retain the line endings contained in the XSL file, whilst other line endings are set to the environment default.

          Is there a way to tell the XSLT transformer what line endings to use?
          Sites generated by Forrest have inconsistent line endings when created on a Windows platform.

          I did a little testing, here's what I have discovered so far:
           
          - any file that is processed by XSLT has the line endings problem
          - on investigating one such file (index.html) I discovered that the generated comments from site2xhtml.xsl (such as breadtrail comment) have CRLF endings whilst most other lines have LF endings.
           
          I'm running on Windows, and get the same results whether I run under
          CYGWIN or DOS.
           
          To reproduce run "forrest site" in any site and check out the generated docs in build/site.

          This appears to a result of the XSLT transformations. xsl:comments retain the line endings contained in the XSL file, whilst other line endings are set to the environment default.

          Is there a way to tell the XSLT transformer what line endings to use?
          Ross Gardler made changes -
          Link This issue blocks XALANJ-656 [ XALANJ-656 ]
          Ross Gardler made changes -
          Link This issue blocks XALANJ-656 [ XALANJ-656 ]
          Ross Gardler made changes -
          Link This issue is blocked by XALANJ-656 [ XALANJ-656 ]
          David Crossley made changes -
          Priority Minor [ 4 ] Blocker [ 1 ]
          Gavin made changes -
          Attachment index.html [ 12325539 ]
          David Crossley made changes -
          Description Sites generated by Forrest have inconsistent line endings when created on a Windows platform.

          I did a little testing, here's what I have discovered so far:
           
          - any file that is processed by XSLT has the line endings problem
          - on investigating one such file (index.html) I discovered that the generated comments from site2xhtml.xsl (such as breadtrail comment) have CRLF endings whilst most other lines have LF endings.
           
          I'm running on Windows, and get the same results whether I run under
          CYGWIN or DOS.
           
          To reproduce run "forrest site" in any site and check out the generated docs in build/site.

          This appears to a result of the XSLT transformations. xsl:comments retain the line endings contained in the XSL file, whilst other line endings are set to the environment default.

          Is there a way to tell the XSLT transformer what line endings to use?
          Sites generated by Forrest have inconsistent line endings when created on a Windows platform.

          I did a little testing, here's what I have discovered so far:
           
          - any file that is processed by XSLT has the line endings problem
          - on investigating one such file (index.html) I discovered that the generated comments from site2xhtml.xsl (such as breadtrail comment) have LF endings whilst most other lines have CRLF endings.
           
          I'm running on Windows, and get the same results whether I run under
          CYGWIN or DOS.
           
          To reproduce run "forrest site" in any site and check out the generated docs in build/site.

          This appears to a result of the XSLT transformations. xsl:comments retain the line endings contained in the XSL file, whilst other line endings are set to the environment default.

          Is there a way to tell the XSLT transformer what line endings to use?
          David Crossley made changes -
          Attachment FOR-492-fixcrlf.txt [ 12327400 ]
          David Crossley made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Incomplete [ 4 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              Ross Gardler
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development