Actually, I didn't need a whitespace stripper at all. I just needed to stop using </br> tags in my template and let AOL do its thing with the physical presence of a linefeed, which makes the whole thing more WYSIWIG anyway, which is the aim.
Nathan Bubna wrote:
No whitespace stripper in Velocity.  Last i checked, JTidy was the
best option.  I'm not aware of another Apache one at the moment.

On Sun, Dec 28, 2008 at 7:46 PM, Steve Cohen <[email protected]> wrote:
Thanks.  I didn't understand that both properties were needed.   (And I now
understand what the configuration documentation was trying to tell me.)

This is now working for me, except for one thing:

The AOL converter seems to strip out all whitespace from the html it
generates.  Since I'm not using the AOL converter here, (the velocity
templates are serving the function of providing the html), whitespace is not
getting stripped and the output ends up looking not so hot.  The whole point
of doing this is to be able to code the templates more or less visually as
simple html pages.  I don't want unreadable templates.  So I need an html
whitespace stripper.  I suppose I could use JTidy but I'd like to avoid
adding yet another jar.  Is there anything in Velocity itself (or perhaps in
the Apache toolset) that takes html and strips out the whitespace?

Nathan Bubna wrote:
...

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to