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

Calling macro with closing brace on newline throws ParseErrorException

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.0
    • Fix Version/s: None
    • Component/s: Engine
    • Labels:
      None
    • Environment:
      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

              • Assignee:
                claude Claude Brisson
                Reporter:
                sohara Steve O'Hara
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: