[ https://issues.apache.org/jira/browse/VELOCITY-889?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16324997#comment-16324997 ]
Claude Brisson commented on VELOCITY-889: ----------------------------------------- Confirmed. #foo() --> works #foo( ) --> still works #foo( ) -> doesn't work with spaces before the right parenthesis > 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 > > 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 (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@velocity.apache.org For additional commands, e-mail: dev-h...@velocity.apache.org