For reference- this is CF bug # 17915!

-c

-----Original Message-----
From: Jorgen Smith [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 20, 2000 8:38 PM
To: '[EMAIL PROTECTED]'
Subject: FW: Odd cfsetting/cfprocessingdirective whitespace behaviour


After three unsuccessful attempts to the old address;
[EMAIL PROTECTED] is the address to send to now...  :)

-----Original Message-----
From: Jorgen Smith 
Sent: Friday, July 21, 2000 10:30 AM
To: '[EMAIL PROTECTED]'
Subject: Odd cfsetting/cfprocessingdirective whitespace behaviour


Hi, 

With the recommendation that we should enable suppresswhitespace in the CF
Administrator to sort of reduce the heaps of whitespace in the Spectra code,
I bumped into some odd behaviour when outputting text. 

I would get an extra space or two for no particular reason in places where
they were not appropriate. The problem turned out to be that
supresswhitespace ="yes" in combination with enablecfoutputonly adds an odd
space every here and there - such as when using cfscript. 

I ended up writing a small snippet that illustrates the problem. First, the
result, then, the code. Please mind that I didn't use the
<cfprocessingdirective suppresswhitespace = "yes"> as illustrated at first
because it was set in admin ... it took me some time to connect the two.

CF4.5.1.0 Enterprise on NT4sp5 using Apache 1.3.11 web server. Empty
application.cfm.

FYI, FWIW. :)


Regards,
J�rgen


>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
 suppresswhitespace = "yes" - x1 - x2 - x3 -end- 

suppresswhitespace = "no"--x1-x2-x3-end-
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
<cfsetting enablecfoutputonly="yes">

<cfprocessingdirective suppresswhitespace = "yes">
        <cfoutput>suppresswhitespace = "yes"</cfoutput>

        <cfloop list="1,2,3" index="i">
                <cfoutput>-</cfoutput>
                <cfscript>
                        writeoutput("x");
                        writeoutput(i);
                </cfscript>
        </cfloop>

        <cfoutput>-end-</cfoutput>
</cfprocessingdirective>

<cfprocessingdirective suppresswhitespace = "no">
        <cfoutput>#chr(13)##chr(13)#suppresswhitespace = "no"-</cfoutput>

        <cfloop list="1,2,3" index="i">
                <cfoutput>-</cfoutput>
                <cfscript>
                        writeoutput("x");
                        writeoutput(i);
                </cfscript>
        </cfloop>

        <cfoutput>-end-</cfoutput>
</cfprocessingdirective>
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
----------------------------------------------------------------------------
--
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk
or send a message to [EMAIL PROTECTED] with
'unsubscribe' in the body.
------------------------------------------------------------------------------
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebarRsts&bodyRsts/spectra_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to