You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Claude Brisson (JIRA)" <ji...@apache.org> on 2018/10/08 22:45:00 UTC
[jira] [Resolved] (VELOCITY-889) Regression for closing round
parenthesis in macro calls compared to v1.7
[ https://issues.apache.org/jira/browse/VELOCITY-889?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claude Brisson resolved VELOCITY-889.
-------------------------------------
Resolution: Fixed
Assignee: Claude Brisson
Fix Version/s: 2.1
Fixed by commit 1843211.
> Regression for closing round parenthesis in macro calls compared to v1.7
> ------------------------------------------------------------------------
>
> Key: VELOCITY-889
> URL: https://issues.apache.org/jira/browse/VELOCITY-889
> Project: Velocity
> Issue Type: Bug
> Components: Engine
> Affects Versions: 2.0
> Environment: Windows 7
> Java SE 1.8.0-152
> Reporter: Oliver Moehrke
> Assignee: Claude Brisson
> Priority: Major
> Fix For: 2.1
>
>
> The v2.0 engine throws a ParseErrorException for macro calls like:
> {code:java}
> #macro(printCertificateToggleRow $keyName, $summary, $certificateDetails, $cssSummary)
> #printToggleAccordionDataCSS(
> "#printLabelValue($keyName, $summary)",
> "#printCertificateDetails($certificateDetails)",
> "",
> $cssSummary,
> "",
> ""
> )
> #end
> {code}
> It seems, that the closing round parenthesis has a problem with the line break (0x0D0A). It works, if the closing parenthesis stands right behind the last parameter.
> Exception (partly):
> {code:java}
> Caused by: org.apache.velocity.exception.ParseErrorException: Encountered ")" at html/inspectionsheet_html_macros.vm[line 69, column 5]
> Was expecting one of:
> "," ...
> "##" ...
> <WHITESPACE> ...
> <NEWLINE> ...
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org