[ https://issues.apache.org/jira/browse/VELOCITY-857?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claude Brisson resolved VELOCITY-857. ------------------------------------- Resolution: Fixed Assignee: Claude Brisson Fix Version/s: 2.x Incidentally, the documentation becomes correct with the *new* space gobbling default behavior... > Example of whitespace gobbling in User Guide is incorrect > --------------------------------------------------------- > > Key: VELOCITY-857 > URL: https://issues.apache.org/jira/browse/VELOCITY-857 > Project: Velocity > Issue Type: Bug > Reporter: Chris Pimlott > Assignee: Claude Brisson > Labels: documentation, website > Fix For: 2.x > > > Under the section [VTL: Formatting > Issues|https://velocity.apache.org/engine/releases/velocity-1.7/user-guide.html#VTL:_Formatting_Issues], > the whitespace gobbling example given is incorrect. > {quote} > Velocity's behaviour is to gobble up excess whitespace. The preceding > directive can be written as: > {code} > Send me > #set( $foo = ["$10 and ","a pie"] ) > #foreach( $a in $foo ) > $a > #end > please. > {code} > or as > {code} > Send me > #set($foo = ["$10 and ","a pie"]) > #foreach ($a in $foo )$a > #end please. > {code} > In each case the output will be the same. > {quote} > The actual results of these templates: > {code} > Send me > $10 and > a pie > please. > {code} > {code} > Send me > $10 and > a pie > please. > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@velocity.apache.org For additional commands, e-mail: dev-h...@velocity.apache.org