<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Eliminating Whitespace in ColdFusion</title>
	<atom:link href="http://www.simonwhatley.co.uk/eliminating-whitespace-in-coldfusion/feed" rel="self" type="application/rss+xml" />
	<link>http://www.simonwhatley.co.uk/eliminating-whitespace-in-coldfusion</link>
	<description>The opposite of every great idea is another great idea</description>
	<lastBuildDate>Wed, 17 Mar 2010 20:56:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Datico</title>
		<link>http://www.simonwhatley.co.uk/eliminating-whitespace-in-coldfusion/comment-page-1#comment-118</link>
		<dc:creator>Datico</dc:creator>
		<pubDate>Tue, 24 Nov 2009 17:26:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.simonwhatley.co.uk/?p=351#comment-118</guid>
		<description>Oops, for 1) I meant &lt;cfsetting enablecfoutputonly=&quot;yes&quot;&gt; for my entire app</description>
		<content:encoded><![CDATA[<p>Oops, for 1) I meant &lt;cfsetting enablecfoutputonly=&#8221;yes&#8221;&gt; for my entire app</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Datico</title>
		<link>http://www.simonwhatley.co.uk/eliminating-whitespace-in-coldfusion/comment-page-1#comment-117</link>
		<dc:creator>Datico</dc:creator>
		<pubDate>Tue, 24 Nov 2009 17:24:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.simonwhatley.co.uk/?p=351#comment-117</guid>
		<description>Of all the CF methods you mention, I have found the following best practice to be most useful:
1)  for my entire app (put it in application.cfc onRequest() or at the top of every page or something).
2) ALWAYS wrap my output in a cfoutput tag.
This has simplified my development a lot and I have no white space issues any longer. The separation of concerns (code, output) has helped simplify my file structure; it is very clear where html output is happening and where it is not. I simply use a cfloop inside a cfoutput if I want to output a query.  It also avoids the unpleasant issue of white-space trimmers mucking with my page and causing it to break (which happens rarely, but when it does can be a pain to fix).</description>
		<content:encoded><![CDATA[<p>Of all the CF methods you mention, I have found the following best practice to be most useful:<br />
1)  for my entire app (put it in application.cfc onRequest() or at the top of every page or something).<br />
2) ALWAYS wrap my output in a cfoutput tag.<br />
This has simplified my development a lot and I have no white space issues any longer. The separation of concerns (code, output) has helped simplify my file structure; it is very clear where html output is happening and where it is not. I simply use a cfloop inside a cfoutput if I want to output a query.  It also avoids the unpleasant issue of white-space trimmers mucking with my page and causing it to break (which happens rarely, but when it does can be a pain to fix).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Noname</title>
		<link>http://www.simonwhatley.co.uk/eliminating-whitespace-in-coldfusion/comment-page-1#comment-116</link>
		<dc:creator>Noname</dc:creator>
		<pubDate>Thu, 24 Sep 2009 11:35:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.simonwhatley.co.uk/?p=351#comment-116</guid>
		<description>To remove empty lines from an xml:

ReReplace(xml, &quot;[\s]+[#Chr(13)##Chr(10)#]+&quot;, &quot;#Chr(10)#&quot;, &quot;ALL&quot;)</description>
		<content:encoded><![CDATA[<p>To remove empty lines from an xml:</p>
<p>ReReplace(xml, &#8220;[\s]+[#Chr(13)##Chr(10)#]+&#8221;, &#8220;#Chr(10)#&#8221;, &#8220;ALL&#8221;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.simonwhatley.co.uk/eliminating-whitespace-in-coldfusion/comment-page-1#comment-115</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Sun, 19 Oct 2008 00:08:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.simonwhatley.co.uk/?p=351#comment-115</guid>
		<description>Nice.  Works like a charm.

Thanks!</description>
		<content:encoded><![CDATA[<p>Nice.  Works like a charm.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shawn</title>
		<link>http://www.simonwhatley.co.uk/eliminating-whitespace-in-coldfusion/comment-page-1#comment-114</link>
		<dc:creator>Shawn</dc:creator>
		<pubDate>Fri, 13 Jun 2008 08:49:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.simonwhatley.co.uk/?p=351#comment-114</guid>
		<description>Thanks, for the info saved me about a trimmed about a 1/6th off the download. I was going to go in manually and try to use the traditional methods you mentioned but this is much easier.

Thanks!</description>
		<content:encoded><![CDATA[<p>Thanks, for the info saved me about a trimmed about a 1/6th off the download. I was going to go in manually and try to use the traditional methods you mentioned but this is much easier.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon</title>
		<link>http://www.simonwhatley.co.uk/eliminating-whitespace-in-coldfusion/comment-page-1#comment-113</link>
		<dc:creator>Simon</dc:creator>
		<pubDate>Fri, 26 Oct 2007 13:23:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.simonwhatley.co.uk/?p=351#comment-113</guid>
		<description>@Petron - Thanks for noticing the error, I&#039;ve corrected the image.</description>
		<content:encoded><![CDATA[<p>@Petron &#8211; Thanks for noticing the error, I&#8217;ve corrected the image.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: petron</title>
		<link>http://www.simonwhatley.co.uk/eliminating-whitespace-in-coldfusion/comment-page-1#comment-112</link>
		<dc:creator>petron</dc:creator>
		<pubDate>Fri, 26 Oct 2007 13:04:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.simonwhatley.co.uk/?p=351#comment-112</guid>
		<description>This works awesome!

However make sure you put *.cfm instead of *.jsp in the url-pattern if you want it to work on your CF pages.

Thanks!</description>
		<content:encoded><![CDATA[<p>This works awesome!</p>
<p>However make sure you put *.cfm instead of *.jsp in the url-pattern if you want it to work on your CF pages.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon</title>
		<link>http://www.simonwhatley.co.uk/eliminating-whitespace-in-coldfusion/comment-page-1#comment-111</link>
		<dc:creator>Simon</dc:creator>
		<pubDate>Fri, 26 Oct 2007 12:59:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.simonwhatley.co.uk/?p=351#comment-111</guid>
		<description>@Marcel - I haven&#039;t come across a problem with javascript. If the javascript statements are correctly terminated etc, they should be rendered as intended. The servlet filter seems to be pretty clever at only removing what is not needed, but as with everything, give it a thorough test as my environment won&#039;t be the same as yours.</description>
		<content:encoded><![CDATA[<p>@Marcel &#8211; I haven&#8217;t come across a problem with javascript. If the javascript statements are correctly terminated etc, they should be rendered as intended. The servlet filter seems to be pretty clever at only removing what is not needed, but as with everything, give it a thorough test as my environment won&#8217;t be the same as yours.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcel</title>
		<link>http://www.simonwhatley.co.uk/eliminating-whitespace-in-coldfusion/comment-page-1#comment-110</link>
		<dc:creator>Marcel</dc:creator>
		<pubDate>Fri, 26 Oct 2007 10:11:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.simonwhatley.co.uk/?p=351#comment-110</guid>
		<description>Do you know how trimFilter behaves with Javascript code. A lot of these filters and solutions are breaking your javascript code, becuase they remove line breaks where they are needed.</description>
		<content:encoded><![CDATA[<p>Do you know how trimFilter behaves with Javascript code. A lot of these filters and solutions are breaking your javascript code, becuase they remove line breaks where they are needed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ethan Cane</title>
		<link>http://www.simonwhatley.co.uk/eliminating-whitespace-in-coldfusion/comment-page-1#comment-109</link>
		<dc:creator>Ethan Cane</dc:creator>
		<pubDate>Fri, 26 Oct 2007 09:59:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.simonwhatley.co.uk/?p=351#comment-109</guid>
		<description>Hi Simon,

I have used the trim method you mentioned before and it does indeed work wonderfully, however there is a side effect to this approach which I believe affects connections made via RDS. That is the only point to be wary of. As far as I can remember it will perform compression (white space management) against templates you load into Eclipse/Dreamweaver/(any other RDS capable client) rendering the content either un-editable or garbled.

Hopefully since most savvy developers won&#039;t be using RDS (insecure) it won&#039;t pose a huge problem and is best left for production setups anyway.

Hope that helps.

Ethan Cane
Web Developer</description>
		<content:encoded><![CDATA[<p>Hi Simon,</p>
<p>I have used the trim method you mentioned before and it does indeed work wonderfully, however there is a side effect to this approach which I believe affects connections made via RDS. That is the only point to be wary of. As far as I can remember it will perform compression (white space management) against templates you load into Eclipse/Dreamweaver/(any other RDS capable client) rendering the content either un-editable or garbled.</p>
<p>Hopefully since most savvy developers won&#8217;t be using RDS (insecure) it won&#8217;t pose a huge problem and is best left for production setups anyway.</p>
<p>Hope that helps.</p>
<p>Ethan Cane<br />
Web Developer</p>
]]></content:encoded>
	</item>
</channel>
</rss>
