velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Dekany" <ddek...@freemail.hu>
Subject Re: problem/bug parsing #if #else #end
Date Mon, 18 Mar 2002 18:53:29 GMT
On Monday, March 18, 2002 12:28 AM "Jim Rudnicki" <jdr5list@pacbell.net>
writen:


> I was running some tests to understand newlines and spaces.  I need to
have
> macros that return strings with no newlines or leading/trailing spaces.
The
> problem I found was that something like:
>
> #if($n<5)small#elselarge#end
>
> does not recognize the #else token.  You can see my workarounds in test 3
> and 4 below.
[snip]

Try this:
#if($n<5)small#else#**#large#end


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


Mime
View raw message