-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.0
-
Component/s: None
-
Labels:
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.