> 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"

You could replace two or more concurrent spaces with a single space, instead
of an empty string.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:297028
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to