Recently we migrated our application from Velocity 1.7 to 2.0. But after the migration. I see a strange problem, that the output is chomping new lines and merging lines. This happens when we do a parseTemplate()
call.
For Example, here is the piece of code that is causing the problem.
#if ($bvoipData && $bvoipConfigType == "TDM")
call rsvp-sync
!
dial-peer cor custom
!
#parseTemplate ("IPFlex/VoiceDialPeer.vm")
sip-ua
.
.
.
.
#end
With the previous version, the output came in like:
dial-peer hunt 1
!
sip-ua
retry invite 2
no cdp run
!
But with Velocity 2.0, I get the output as:
dial-peer hunt 1
!sip-ua
retry invite 2
no cdp run
!
I would expect the sip-ua to show up in a new line, rather it just merges it to the previous line.
The line:
dial-peer hunt 1
!
comes from the template IPFlex/VoiceDialPeer.vm
.
Not sure if there is some extra configuration that was introduced as a part of the 2.0 release that I probably missed. Any pointers on this would be really helpful.