velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Kienenberger <mkien...@alaska.net>
Subject Re: Extra space appearing in the if /else block
Date Sat, 12 Mar 2005 17:14:47 GMT
Gagan 007 <gagan007india@yahoo.com> wrote:
> #if ($obj.isPreviousEmployee())Yes #else NO 
>  
> if the value of isPreviousEmployee() is true then it works ok(it displays 
Yes) 
> if the values of isPreviousEmployee is false then is displays NO (extra 
space before NO Appears)
> as there is a space between #else and NO (we cannot write #elseNO in the 
template)

#if ($obj.isPreviousEmployee())Yes#else#**#NO

#* this is a velocity inline comment, good for removing spaces after 
#directives *#
## this is a velocity to-end-of-line comment, good for removing newlines

---------------------------------------------------------------------
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