You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Oliver Moehrke (JIRA)" <ji...@apache.org> on 2018/01/12 13:42:00 UTC

[jira] [Created] (VELOCITY-889) Regression for closing round parenthesis in macro calls compared to v1.7

Oliver Moehrke created VELOCITY-889:
---------------------------------------

             Summary: 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-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org