ant-user mailing list archives

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

>--- Nat Gross <natgross.rentalsystems@verizon.net>
>wrote:
>
>  
>
>>Hi;
>>How can I embed a \t within an echo string?
>>I tried to console and file, with and without
>>message attribute, to no 
>>avail.
>>    
>>
>
>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:
>
><project>
>  <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 ;) -->
></project>
>
>Can you just use several spaces?  You could even do:
>
><property name="tab" value="    " />
>and use ${tab} wherever you want...
>
>  
>
Neat idea. Thanks.
-nat

>-Matt
>
>  
>
>>Thanks,
>>-nat
>>    
>>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message