Hi Ken,

 

The change in 0.90 is that a linefeed (CRLF on Windows, LF on unix) is no
longer implicitly appended at the end of the content.

Nothing has changed with regards to linefeeds within the content.

 

If you want to explicitly add a CRLF, then you can just use &x0d;&x0a;.

 

<echo file="messagefile.txt" append="true">| BUILD INFO&x0d;&x0a;</echo>



Hope this helps,

 

Gert

 

From: Parrish, Ken [mailto:kparr...@gomez.com] 
Sent: maandag 12 juli 2010 17:25
To: nant-users@lists.sourceforge.net
Subject: Re: [NAnt-users] Upate to 0.90, missing CR-LF ...

 

I found documentation indicating that since 0.86, newlines are no longer
automatically emitted when <echo> is directed to a file.

 

How do I emit a newline into a file?  This is Windows, so I need a CR/LF
combination.

 

Thanks,

 

Ken Parrish

 

From: Parrish, Ken [mailto:kparr...@gomez.com] 
Sent: Monday, July 12, 2010 11:03 AM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] Upate to 0.90, missing CR-LF ...

 

I just updated to Nant 0.90.

 

I have a script with a bunch of <echo> statements that create the text for
an e-mail.

 

With the update to 0.90, the <echo> statement do not appear to emit a CR-LF
at the end of each line.

 

Any clues?  Explanations for the change in behavior?

 

            <echo file="messagefile.txt" append="true">| BUILD INFO</echo>



Previous, messsagefile.txt would have a CR-LF at the end of each line.  No
longer.

 

Thanks,

 

Ken Parrish

Gomez, Inc.

No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 9.0.819 / Virus Database: 271.1.1/2997 - Release Date: 07/11/10
20:36:00

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to