Return-Path: Delivered-To: apmail-forrest-dev-archive@www.apache.org Received: (qmail 13891 invoked from network); 19 Apr 2006 08:27:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Apr 2006 08:27:20 -0000 Received: (qmail 45050 invoked by uid 500); 19 Apr 2006 08:27:18 -0000 Delivered-To: apmail-forrest-dev-archive@forrest.apache.org Received: (qmail 45000 invoked by uid 500); 19 Apr 2006 08:27:18 -0000 Mailing-List: contact dev-help@forrest.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@forrest.apache.org List-Id: Delivered-To: mailing list dev@forrest.apache.org Received: (qmail 44989 invoked by uid 99); 19 Apr 2006 08:27:18 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Apr 2006 01:27:18 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Apr 2006 01:27:17 -0700 Received: from brutus (localhost.localdomain [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CCE5E7142D6 for ; Wed, 19 Apr 2006 08:26:17 +0000 (GMT) Message-ID: <27365257.1145435177749.JavaMail.jira@brutus> Date: Wed, 19 Apr 2006 08:26:17 +0000 (GMT+00:00) From: "Gavin (JIRA)" To: dev@forrest.apache.org Subject: [jira] Commented: (FOR-492) Inconsistent Line Endings in generated sites MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/FOR-492?page=comments#action_12375069 ] Gavin commented on FOR-492: --------------------------- As far as I can see, all lines on Windows from a generated .html file all end with CRLF. Also I see no difference in the way comments are treated as previously mentioned. Example code from an index.html file. Oops, sorry cant paste code - the ^M gets converted to a CRLF !!, I'll attach a file instead. This Wikipedia explains the difference between the 3 main OS versions and their handling. I blame it on CP/M myself :) > Inconsistent Line Endings in generated sites > -------------------------------------------- > > Key: FOR-492 > URL: http://issues.apache.org/jira/browse/FOR-492 > Project: Forrest > Type: Bug > Components: Core operations > Versions: 0.7 > Environment: Windows (with or without CYGWIN) > Reporter: Ross Gardler > Priority: Blocker > Fix For: 0.8-dev > > 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? -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira