Description
The behavior of macro calls without parenthesis changed in 2.x. I cannot find anything in the changelog about that but maybe I missed it.
The following:
#macro(mymacro)value#end #mymacro
produces:
- in Velocity 1.7: "value/n"
- in Velocity 2.x: "value"
but:
#macro(mymacro)value#end #mymacro()
produces in both Velocity versions "value" (eats the newline)
Looks like omitting parenthesis in Velocity 1.7 was making the macro call "inline" while having them was eating the following newline like things like #set directive do.