You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Jack Holt <ja...@gmail.com> on 2005/06/06 16:59:51 UTC
line breaks in #if
It appears that Velocity 1.4 doesn't like line breaks inside the
parentheses following an #if.
I tried code like the following:
#if($mightBeNull
&& $mightBeNull == $testValue)
and Velocity threw a org.apache.velocity.exception.ParseErrorException.
Removing the line feed fixed the problem.
Is this on purpose or will a later version allow line feeds?
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org
Re: line breaks in #if
Posted by Will Glass-Husain <wg...@forio.com>.
The (unreleased) 1.5 version allows this. Use the nightly snapshot if you
want to get a sneak preview.
http://cvs.apache.org/snapshots/velocity/
Best,
WILL
----- Original Message -----
From: "Jack Holt" <ja...@gmail.com>
To: "Velocity Users List" <ve...@jakarta.apache.org>
Sent: Monday, June 06, 2005 7:59 AM
Subject: line breaks in #if
It appears that Velocity 1.4 doesn't like line breaks inside the
parentheses following an #if.
I tried code like the following:
#if($mightBeNull
&& $mightBeNull == $testValue)
and Velocity threw a org.apache.velocity.exception.ParseErrorException.
Removing the line feed fixed the problem.
Is this on purpose or will a later version allow line feeds?
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org