Velocity removes a newline after a macro call

View: New views
1 Messages — Rating Filter:   Alert me  

Velocity removes a newline after a macro call

by Finaris :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

i use velocity 1.6.2 and i have the following issue to report.

When i call a macro at the end of a line, velocity removes the newline after the macro call.

Example:


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

  Output:
  i am a macro i am a macro



Can somebody explain this stange velocity behavior ???