Issue Details (XML | Word | Printable)

Key: FOR-492
Type: Bug Bug
Status: Resolved Resolved
Resolution: Incomplete
Priority: Blocker Blocker
Assignee: Unassigned
Reporter: Ross Gardler
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Forrest

Inconsistent Line Endings in generated sites

Created: 06/May/05 05:04 PM   Updated: 20/Aug/06 09:22 AM
Return to search
Component/s: Core operations
Affects Version/s: 0.7
Fix Version/s: 0.8

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works FOR-492-fixcrlf.txt 2006-05-12 04:36 PM David Crossley 0.5 kB
HTML File index.html 2006-04-19 03:27 PM Gavin 10 kB
Environment:
Issue Links:
Blocker
 


 Description  « Hide
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?


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Repository Revision Date User Message
ASF #405912 Fri May 12 22:39:32 UTC 2006 crossley Fixed inconsistent line-endings in comments of generated html.
Use workaround with Ant fixcrlf.
Issue: FOR-492
Files Changed
MODIFY /forrest/trunk/site-author/status.xml
MODIFY /forrest/trunk/main/targets/site.xml

Repository Revision Date User Message
ASF #406816 Tue May 16 03:58:39 UTC 2006 crossley Ant task fixcrlf with default @eol is broken on Mac OS X (see Ant bug 39585)
so add a workaround.
Issue: FOR-492
Files Changed
MODIFY /forrest/trunk/main/targets/site.xml

Repository Revision Date User Message
ASF #407934 Sat May 20 00:18:54 UTC 2006 crossley Enhance the fixme note about fixcrlf Mac line endings.
Ant 39585 is fixed in trunk.
Issue: FOR-492
Files Changed
MODIFY /forrest/trunk/main/targets/site.xml