Steve O'Hara created VELOCITY-893: ------------------------------------- Summary: Calling macro with closing brace on newline throws ParseErrorException Key: VELOCITY-893 URL: https://issues.apache.org/jira/browse/VELOCITY-893 Project: Velocity Issue Type: Bug Components: Engine Affects Versions: 2.0 Environment: V2.0, line whitespace gobbling Reporter: Steve O'Hara
This is a regression from 1.7. {code:java} #macroLayoutPlanner( "planWidget" "false" [ "plannerConfigs_controlBarConfigs,$PaletteOvrd, layoutPlanWidgetAdditions" ], $Props, ${PlanEntity.SVGContent} ) {code} This fails because the closing bracket is on a new line. {code} 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> ... {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@velocity.apache.org For additional commands, e-mail: dev-h...@velocity.apache.org