velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <>
Subject Re: other options besides jtidy
Date Wed, 13 Aug 2003 18:38:20 GMT
On Wed, 2003-08-13 at 13:41, Serge Knystautas wrote:
> [...JTidy...]

It has worked well for me too.

> This will strip all spots where you have more than one whitespace 
> elements.  It would screw up something in a <pre> tag, but that's 
> related to whatever whitespace removal approach you take.

Maybe combine it with an HTML parser and skip PRE tags, and maybe
comments, too. Shame to lose indentation info if somebody is going to
edit it someday! 

Too bad about having to process real-world HTML, but if it's just yours
and well-formed (XHTML?) then that's not too bad...


View raw message