[ 
https://issues.apache.org/jira/browse/VELOCITY-359?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Henning Schmiedehausen closed VELOCITY-359.
-------------------------------------------


> #if(some expression)#end causes ParseException
> ----------------------------------------------
>
>                 Key: VELOCITY-359
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-359
>             Project: Velocity
>          Issue Type: Bug
>          Components: Engine
>    Affects Versions: 1.3.1
>         Environment: Operating System: Windows XP
> Platform: PC
>            Reporter: Peter Romianowski
>             Fix For: 1.5
>
>
> #if(...) #end works but #if(...)#end
> Stacktrace:
> org.apache.velocity.exception.ParseErrorException: Encountered "#en
> d\n" at line 61, column 44.
> Was expecting one of:
>     "(" ...
>     <RPAREN> ...
>     <ESCAPE_DIRECTIVE> ...
>     <SET_DIRECTIVE> ...
>     "\\\\" ...
>     "\\" ...
>     <TEXT> ...
>     <SINGLE_LINE_COMMENT> ...
>     "*#" ...
>     "*#" ...
>     <STRING_LITERAL> ...
>     "if" ...
>     "stop" ...
>     <NUMBER_LITERAL> ...
>     <WORD> ...
>     <DOT> ...
>     "{" ...
>     "}" ...
>     <IDENTIFIER> ...
> If you wonder why we write such stupid statements: We use velocity inside a 
> CMS
> where it is possible to leave texts blank inside an #if-block.

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

Reply via email to