Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Joel Grimes / Joel Grimes (Joel Grimes)
Created: 03/10/2016
Components: Language, Functions
Versions: 2016
Failure Type:
Found In Build/Fixed In Build: CF2016_Final /
Priority/Frequency: Major / All users will encounter
Locale/System: English / Win 2012 Server x64
Vote Count: 2
Problem Description:In a cf function with output="true", whitespace is stripped between output variables when the cfoutput is not inside the cffunction.
Steps to Reproduce:
<cffunction name="test" output="Yes" access="public" returntype="void" >
<cfset a = "b" />
#a# #a#
</cffunction>
<cfoutput> #test()#</cfoutput>
Actual Result:
bb
Expected Result:
b b
Any Workarounds:
The only way this renders correctly in Coldfusion 2016 is to wrap the dynamic content inside the function with cfoutput tags.
<cffunction name="test" output="Yes" access="public" returntype="void" >
<cfset a = "b" />
<cfoutput>#a# #a#</cfoutput>
</cffunction>
<cfoutput> #test()#</cfoutput>
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4127481
External Customer Info:
External Company:
External Customer Name: Joel Grimes
External Customer Email:
External Test Config: This is on a windows development server.
Attachments:
Comments: