Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Under the section VTL: Formatting Issues, the whitespace gobbling example given is incorrect.
Velocity's behaviour is to gobble up excess whitespace. The preceding directive can be written as:
Send me #set( $foo = ["$10 and ","a pie"] ) #foreach( $a in $foo ) $a #end please.or as
Send me #set($foo = ["$10 and ","a pie"]) #foreach ($a in $foo )$a #end please.In each case the output will be the same.
The actual results of these templates:
Send me $10 and a pie please.
Send me $10 and a pie please.