Try this:

<replace file="test.txt" value="">
  <replacetoken><![CDATA[

]]></replacetoken>
  <replacevalue><![CDATA[
]]></replacevalue>
</replace>

Be careful to make sure the CDATA only contains the EOL's and no extra
whitespace!

BEFORE:
=======================
this file

seems to be

double spaced

except for the
very last line.


AFTER:
=======================
this file
seems to be
double spaced
except for the
very last line.


yours,

Julius

On Wed, 2005-12-01 at 19:34 -0500, Nat Gross wrote:
> Hi;
> On Windows, I get a daily text file from another process that has tons 
> of extra EOL's, which I manually delete with my editor.
> How can I use Ant's filter to copy the file and strip all duplicate 
> eol's? The fixeol task does not cut it. It should have an option to 
> remove the eol, or replace every 2 consecutive eol's with 1.
> If its a quick one for you, please advise.
> Thank you.
> -nat
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to