Jochem, I just saw this now for some reason, but thats a great idea. Thanks! BTW, does Tidy correct mistakes in the HTML also?
Brook At 01:34 AM 5/31/2003 +0200, you wrote: >Brook Davies wrote: > > > > I am trying to generate some HTML via CF and I want the HTML to come out > > clean. But I end up with lots of whitespace and for the life of me, I can > > not get proper indentation due to all the CFIFS and related CF code. I > have > > tried using CFSETTING ENABLECFOUTPUTONLY="NO", but I still end up with > > strange indents and such. I use CFSAVECONTENT for some blocks and then > > include the resulting HTML within more HTML. > > > > Does any one know of any tricks to get the resulting HTML to be clean and > > properly intended? > >You could try to take the value of the buffer in OnRequestEnd, pass it >to a cleanup script (such as the Java version of the HTML Tidy engine) >and return the result from that instead of the original value. YMMV > >Jochem > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4