Code:
<cfset oTest = createObject("component", "somepath.Test")>
<cfoutput>< #oTest.getNumber()#</cfoutput>


Test.cfc:
<cfcomponent>
        <cffunction name="getNumber" access="public"
returntype="numeric" output="false">
                <cfreturn 9>
        </cffunction>
</cfcomponent>


Anticipated output:
<(space)9


Actual output
<9


It doesn't matter if the value returned is a number or string, you still
loose the space between '<' and the value returned. If you change the
'<' character to any other, the space between the character and the
value returned appears in the source.

This is on CFMX 6.1. Can anyone else reproduce?


-- 
Aidan Whitehall <mailto:[EMAIL PROTECTED]>
Macromedia ColdFusion Developer
Fairbanks Environmental Ltd  +44 (0)1695 51775
Queen's Awards Winner 2003 <http://www.fairbanks.co.uk/go/awards>

Fairbanks uses anti-spam filtering. If you sent an e-mail and expected
to receive a response but didn't, please call -- it may be that your
e-mail didn't make it to the intended mailbox.

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to