Uploaded image for project: 'Velocity'
  1. Velocity
  2. VELOCITY-889

Regression for closing round parenthesis in macro calls compared to v1.7

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0
    • 2.1
    • Engine
    • None
    • Windows 7
      Java SE 1.8.0-152

    Description

      The v2.0 engine throws a ParseErrorException for macro calls like:

      #macro(printCertificateToggleRow $keyName, $summary, $certificateDetails, $cssSummary)
        #printToggleAccordionDataCSS(
          "#printLabelValue($keyName, $summary)",
          "#printCertificateDetails($certificateDetails)",
          "",
          $cssSummary,
          "",
          ""
        )
      #end
      

      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):

      Caused by: org.apache.velocity.exception.ParseErrorException: Encountered ")" at html/inspectionsheet_html_macros.vm[line 69, column 5]
      Was expecting one of:
          "," ...
          "##" ...
          <WHITESPACE> ...
          <NEWLINE> ...
      

      Attachments

        Issue Links

          Activity

            People

              cbrisson Claude Brisson
              moehrke Oliver Moehrke
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: