You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by James Carman <ja...@carmanconsulting.com> on 2003/11/12 22:56:05 UTC
Controlling Whitespace?
Is there any way to explicitly control the whitespace output by a velocity
template? I need to output a string like "a + b + c = d + e + f" by
iterating through some lists (the things on the left and then the things on
the right of the = sign). But, it puts too much whitespace between the +
signs and the "things." Can I control this a little better?
James Carman
President Carman Consulting, Inc.
1218 Bobwhite Ct.
<http://maps.yahoo.com/py/maps.py?Pyt=Tmap&addr=1218+Bobwhite+Ct.&csz=Edgewo
od,+KY++41018&country=us>
Edgewood, KY 41018
james@carmanconsulting.com
IM: jwcarman
tel:
fax: (513) 325-7977
(240) 218-7231
<http://www.plaxo.com/signature/> Powered by Plaxo
<http://www.plaxo.com/signature/> Want a signature like this?
Re: Controlling Whitespace?
Posted by Nathan Bubna <na...@esha.com>.
James Carman said:
> Is there any way to explicitly control the whitespace output
> by a velocity template?
...
use comments. (i.e. ## and #* *# )
e.g.:
#if( $foo )#*
*#i like foo.##
#end
alternately, i've heard you can use JTidy or similar things to post-process
and clean things up.
Nathan Bubna
nathan@esha.com
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org