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" <[EMAIL PROTECTED]>
To: "Velocity Users List" <[email protected]>
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to