[
https://issues.apache.org/jira/browse/VELOCITY-43?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Henning Schmiedehausen closed VELOCITY-43.
------------------------------------------
> can't parse text immediately after #else
> ----------------------------------------
>
> Key: VELOCITY-43
> URL: https://issues.apache.org/jira/browse/VELOCITY-43
> Project: Velocity
> Issue Type: Bug
> Components: Engine
> Affects Versions: 1.5
> Environment: Operating System: All
> Platform: PC
> Reporter: Jim Rudnicki
> Assigned To: Velocity-Dev List
> Fix For: 1.5
>
> Attachments: curly-directive.cmp, curly-directive.vm,
> Parser.jjt.patch, Parser.jjt.patch2
>
>
> I need to have a macro that returns a string with no newlines or
> leading/trailing spaces. The problem I found was that something like:
> #macro( test2 $n)
> #if($n<5)small#elselarge#end
> #end
> does not recognize the #else token. It produces the string "small#elselarge"
> or ""
--
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]