[prev in list] [next in list] [prev in thread] [next in thread] 

List:       velocity-dev
Subject:    RE: whitespace trouble
From:       Dave Fox <dfox () NETdelivery ! com>
Date:       2002-07-26 21:45:19
[Download RAW message or body]

Geir, Chris, et al.,

While I would prefer that Velocity adhere to what the documentation says,
unfortunately I'm not experienced enough to write patches... 

If it isn't going to behave as documented - the docs should probably be
changed.

-df

-----Original Message-----
From: Christoph.Reck@dlr.de [mailto:Christoph.Reck@dlr.de]
Sent: Wednesday, July 24, 2002 4:55 AM
To: Velocity Developers List
Subject: Re: whitespace trouble


It's still the standalone-directive-whitespace problem addressed in
several other threads. Was there a consensus reached if this could
be handled properly?

Geir Magnusson Jr. wrote:
> On 7/23/02 8:34 PM, "Dave Fox" <dfox@NETdelivery.com> wrote:
> 
> 
>>I'm currently using Ant1.4/Velocity 1.3 on Win2K. According to the
>>documentation (http://jakarta.apache.org/velocity/user-guide.html)
>>Velocity's output should not be affected by the formatting of VTL code.
The
>>problem I'm seeing is that both Tabs and whitespace that precede
directives
>>are being passed to the output. For example if I indent some code:
>>
>>#foreach($foo in $bar)
>>#if ($foo.equals("true"))
>>#doSomething($foo)
>>#end
>>#end
> 
> 
> Yes, The output is indeed affected by whitespace.
> 
> It's a templating system, so the specific whitespace in the template is
> output.
> 
> 
>>...I get progressively more indentation in my output depending on how many
>>times the foreach loop is processed.
>>
>>Thank you for your attention to this matter.
>>Dave Fox 
> 


-- 
:) Christoph Reck


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

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic