Ben... That's awesome that you suggested cfsavecontent. I just did that and was astounded that it worked. I wrapped the whole page into cfsavecontent, then did some find and replaces and got rid of everything.
<!----------------//------ andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --------------//---------> -----Original Message----- From: Ben Nadel [mailto:[EMAIL PROTECTED] Sent: Monday, June 05, 2006 4:33 PM To: CF-Talk Subject: RE: Supressing white space I find a good mix of CFSilent and changing my loop structure does the trick.... White space does not "happen" inside a tag, so a loop like: <cfloop ... ><option value=""></option></cfloop > Creates no white space while maintaining a certain degree of "look and feel" of a nicely laid out code block. Additionally, try putting cfsilent blocks inside of loops if you are doing a lot of calculations. Extreme measures that could work are to save the content of the page into a CFSaveContent buffer, remove white space and then write the buffer to the response. ........................ Ben Nadel www.bennadel.com -----Original Message----- From: Andy Matthews [mailto:[EMAIL PROTECTED] Sent: Monday, June 05, 2006 1:21 PM To: CF-Talk Subject: Supressing white space I'm have a devil of a time getting rid of white space in my code here: http://www.commadelimited.com/travian In some cases I've got 30 plus lines between actual HTML elements. I wondered if some of you could suggest methods of getting rid if that. In the case of this particular page there's nearly 100k of line breaks and tabs. I found a post by Christian Cantrell who suggested installing a servlet filter into the Coldfusion root: http://weblogs.macromedia.com/cantrell/archives/2005/01/eliminate_coldf.cfm Has anyone implemented this method? Our company hosts nearly 200 Coldfusion websites in our cluster. If I implement this method, does anyone know if it will adversely affect anyone else? Does it just get rid of whitespace for ALL returned code? Need some help please. Thanks. <!----------------//------ andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --------------//---------> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:242460 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

