Yes, I found this as well.  I did my own work-around, but it is not fit for
public reading!

Mike

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





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:222334
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=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to