Uploaded image for project: 'Velocity'
  1. Velocity
  2. VELOCITY-278

The whitespaces are not getting gobbled up by Velocity.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 1.0-Release
    • None
    • Testing
    • None
    • Operating System: other
      Platform: Other
    • 30017

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            nmanand_99@yahoo.com Narinder
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: