[
https://issues.apache.org/jira/browse/VELOCITY-795?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12986081#action_12986081
]
Nathan Bubna commented on VELOCITY-795:
---------------------------------------
That code is functionally equivalent to mine, which does still parse the
template fine. Anyway, posting your runner code can sometimes be helpful for
figuring out your problem, but a failing testcase that i can drop into the
project testsuite or a running application from which a working testcase can be
created are needed for confirming bug reports.
At this point (having been twice unable to replicate the problem), it probably
would have been better to start this conversation on the user mailing list, but
it seems nearly pointless to move it there now.
Can you please post the Velocity portion of the ParseErrorException's stack
trace?
> Multiple #if statements causes ParseErrorException: Encountered "<EOF>"
> ------------------------------------------------------------------------
>
> Key: VELOCITY-795
> URL: https://issues.apache.org/jira/browse/VELOCITY-795
> Project: Velocity
> Issue Type: Bug
> Environment: Mac OSX, Java 1.5, Velocity 1.4
> Reporter: Becky Cartine
>
> When I include an #if statement twice in a velocity template, I get a
> ParseErrorException.
> If I remove the first occurance of the #if statement below, there are no
> errors.
> <html>
> <body>
> some text here
> #if ($message)
> Message:
> #end
> some more text
> #if ($message)
> Message:
> #end
> </body>
> </html>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]