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

List:       velocity-user
Subject:    Re: how to suppress TABS in output?
From:       Nathan Bubna <nathan () esha ! com>
Date:       2004-05-28 16:01:42
Message-ID: 025901c444cd$1234c850$6e05a8c0 () zeus ! esha ! com
[Download RAW message or body]

Christoph Reck said:
> isn't it time to start a voting thread on the "Enhance whitespace gobbling"
> issue? - see http://issues.apache.org/bugzilla/show_bug.cgi?id=27413
> And specially the thread "Status: macros and white space gobbling"
> http://marc.theaimsgroup.com/?l=velocity-user&m=107834023824918&w=2

another email thread is ok, i suppose, but it feels like we've retread this
territory <exaggerated>a gazillion times and everything is always repeated and
nothing ever changes.</exaggerated>  i know these threads get archived (e.g.
the link above), but i think it might be prudent to document this issue in a
somewhat more readable, organized, and permanent form.

http://nagoya.apache.org/wiki/apachewiki.cgi?VelocityProjectPages

> Quoting Mike Kienenberger:
> "Actually, there are really four ways to go about gobbling.   One is the
> classic (broken) style, one is the classic ideal style (directives on a line
> by themselves generate no whitespace, but directives anywhere else do),
> whitespace is never gobbled, and whitespace is always compacted."

for instance, each of these four options could get their own page with a full
explanation, examples, patches (if they exist), arguments on behalf of the
option, and any relevant bugzilla links.  this would help to ensure clarity
and understanding on all parts.

> I hope this gets to be on the TODO path for vel 1.5, 1.6 or at the latest
2.0.
> All I hope to achieve through the voting is to obtain a "yup we want that"
> from the project lead to allow us (users/developers) to prepare a patch for
> it. Since it is not 100% BC, and also a big change to the parser, I would
> also like to know in beforehand if Mr.Parser(tm) will accept such changes in
> his area. Otherwise we must consider creating a separate branch of Velocity.


the main page on the subject could contain a brief summary, links to the
above, and space for users/contributors/committers to indicate their
preference.  i believe this would help to generate a better feel for what peop
le want and what people despise.

...
> On other occasions people suggested running the output trough an external
> formatter, aka. HTML->jtidy, code-generators -> code formatter, etc.
...

we might also include some pages documenting alternatives and workarounds.

and actually, i took a few moments to get things started...
http://nagoya.apache.org/wiki/apachewiki.cgi?VelocityWhitespaceGobbling

Nathan Bubna
nathan@esha.com


---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-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