velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Novakowski <m...@pandora.com>
Subject Re: Any way to evaluate an expression without generating empty line on output?
Date Fri, 16 Jun 2006 18:21:32 GMT
I believe you can use:

$!someexpression ##

and the ## will essentially "comment out" the newline at the end.

I've done this for macros that can't contain extra whitespace (i.e.  
generating URLs).

Marc

On 16-Jun-06, at 6:46 AM, Colbert Philippe wrote:

> I am writing and using Velocity macros.  Inside the macro, I  
> evaluate certain expressions using $!somexpression.  However, I  
> noticed that Velocity generates an empty line for each of the  
> silent expression line.   That's annoying!   Does anybody have a  
> solution?
>
> CP


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


Mime
View raw message