There loads of custom tags dotted around the net (I seem to recall one
called cf_stripWhitespace or similar) that do this, and give you a
load of options on how aggressive they are.
I also seem to recall the saving over HTTP 1.1 is negligible as it
compresses on the fly. However, saying that, I might be telling
complete lies ;)
Neil
On 21 Jan 2008, at 20:13, Nate Willard wrote:
> hello,
>
> I learned of of an issue with my whitespace reduction
> method that is almost funny.
>
> I do the following to remove whitespace
>
> <cfsavecontent variable="pageholder_tboutputed">
> PAGE CONTENTS.......
> </cfsavecontent>
> <cfset pageholder_tboutputed
> =REReplace(pageholder_tboutputed,
> "[[:space:]]{2,}","","ALL")>
> <CFOUTPUT>#pageholder_tboutputed#</CFOUTPUT>
>
> What ended up happening today is that one of the
> sources I pull in information from had double spaced
> between words. so instead of the "The bear went home"
> they had "The bear went home" which caused my method
> to output "Thebearwent home"
>
> Is there any way around this? Or do I need to remove
> my whitespace method for the time being?
>
> Thxs
>
>
>
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:297039
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4