Hi Mark,

The whole script is below.

Copy from the ----------------- to the next ------------------ and run it.

Dan.

Mark A Kruger wrote:

>Peter,
>
>Could you post your exact code please? The whole test script without the
>little "space here" hint?
>
>-Mark
>
>
>-----Original Message-----
>From: Peter Coppinger [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, October 26, 2005 10:22 AM
>To: CF-Talk
>Subject: ColdFusion Bug :- functions return additional spaces(!)
>
>
>When a function is called and the result outputted directly,
>an extra space is prepended!
>
>For Example:
>----------------------------------------------------
><cffunction name="spaceTest">
>       <cfargument name="s" type="string">
>       <cfreturn "<-SPACE HERE">
></cffunction>
>
><cfoutput><pre>
>
>What is the space doing at the start of this string: "#spaceTest()#".
>
>It works the way it should assigned to a variable first:
><cfset o = spaceTest()>
>No space here -> "#o#"
>
></pre></cfoutput>
>----------------------------------------------------
>
>Tested in ColdFusion 6.1 and ColdFusion 7.
>In CF7 its worse, a carriage return and a space are inserted.
>
>
>
>
>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:222337
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

Reply via email to