ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nat Gross <>
Subject Re: Echo: How to include a <tab> \t.
Date Fri, 28 Jan 2005 00:21:37 GMT
Matt Benson wrote:

>--- Nat Gross <>
>>How can I embed a \t within an echo string?
>>I tried to console and file, with and without
>>message attribute, to no 
>I believe this is an XML thing.  You might find an XML
>parser that would preserve a hard tab character in a
>buildfile, but as I understand it the tab character is
>not defined in XML so the behavior of (e.g. Xerces) is
>to interpret it as a space.  That what appears to be
>happening when I run:
>  <echo message="foo    bar" />
>  <!-- that was a tab between foo and bar
>       but my HTML form-based e-mail won't let
>       me do it ;) -->
>Can you just use several spaces?  You could even do:
><property name="tab" value="    " />
>and use ${tab} wherever you want...
Neat idea. Thanks.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message