You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by bu...@apache.org on 2004/07/10 01:32:13 UTC

DO NOT REPLY [Bug 30017] New: - The whitespaces are not getting gobbled up by Velocity.

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30017>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30017

The whitespaces are not getting gobbled up by Velocity.

           Summary: The whitespaces are not getting gobbled up by Velocity.
           Product: Velocity
           Version: 1.0-Release
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Testing
        AssignedTo: velocity-dev@jakarta.apache.org
        ReportedBy: nmanand_99@yahoo.com


I am using velocity-1.4 on Fuedora Linux and is not ignoring the whitespaces.
I am using the following code:

First example:
#foreach( $foo in [1..5] )
$foo
#end

This prints out
First example:
1
2
3
4
5

If I change the template as:
First example:
#foreach( $foo in [1..5] )
$foo #end

The output comes as:

First example:
1 2 3 4 5

According to the User Guide, the output should be the same in both the cases.

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org