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.





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

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