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

Calling macro with closing brace on newline throws ParseErrorException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 2.0
    • None
    • Engine
    • None
    • V2.0, line whitespace gobbling

    Description

      This is a regression from 1.7.

      #macroLayoutPlanner(
          "planWidget"
          "false"
          [
               "plannerConfigs_controlBarConfigs,$PaletteOvrd,
               layoutPlanWidgetAdditions"
          ],
          $Props,
          ${PlanEntity.SVGContent}
      )
      

      This fails because the closing bracket is on a new line.

      2018-05-30 19:00:54 ERROR filter.RequestFilter - org.springframework.core.NestedIOException: Could not load Velocity template for URL [widgets/layoutplanner.vm]; nested exception is org.apache.velocity.exception.ParseErrorException: Encountered ")" at widgets/layoutplanner.vm[line 144, column 17]
      Was expecting one of:
          "," ...
          "##" ...
          <WHITESPACE> ...
          <NEWLINE> ...
      

      Attachments

        Issue Links

          Activity

            People

              cbrisson Claude Brisson
              sohara Steve O'Hara
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: