I'm experiencing a similar problem to a user in June. If a macro does
not contain a line break, then calling this macro followed by a line
break results in no line break occurring.

Best explained via an example:

  Template:
  #macro( testMarcro ) i am a macro #end
  #testMacro()
  #testMacro()

  Output:
  i am a macro i am a macro

  Expected output:
  i am a macro
  i am a macro

Could someone shed some light on this unexpected behaviour?

Interestingly if I follow the macro call with an empty reference the
line break is preserved, although it seems to be unreliable:

  #macro( testMarcro ) i am a macro #end
  #testMacro() $!variablewhichdoesntexist
  #testMacro()

  Output:
  i am a macro
  I am a macro

Original post:
http://old.nabble.com/Velocity-removes-a-newline-after-a-macro-call-tt23
827728.html#a23827728

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to