ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ninju Bohra <ninju_bo...@yahoo.com>
Subject RE: Echo: How to include a <tab> \t.
Date Fri, 28 Jan 2005 20:07:33 GMT
The &#x0009; works!!
--- Kajsa.Anderson@thomson.com wrote:

> > From: Nat Gross
> [mailto:natgross.rentalsystems@verizon.net]
> > 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
> > 
> 
> Alternately, if you really want a tab character, I
> think you should be able to use the XML character
> entity for tab:
> <property name="tab" value="	">
> 
> Kajsa Anderson
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
> 
> 



	
		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - You care about security. So do we. 
http://promotions.yahoo.com/new_mail

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


Mime
View raw message