>> 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 Jochem, Could this sort of method be used to auto add headers/footers to CFMAIL? Just a thought.... DC ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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 Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4