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
cfoutputpre
What is the space
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
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
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
Not a bug. Just normal CF creation of white space. Simlpy add
output=false to your cffunction. Problem solved.
On 10/26/05, Peter Coppinger [EMAIL PROTECTED] wrote:
When a function is called and the result outputted directly,
an extra space is prepended!
For Example:
When a function is called and the result outputted
directly, an extra space is prepended!
It looks like the space isn't being prepended to the return value, but
ColdFusion is outputting whitespace from within the CFFUNCTION tag when it
is called. Even more interesting, it's only outputting
This isn't a bug...add output=false to your cffunction tag (and your
cfcomponent tag) to suppress output inside of them.
Cheers,
Joe
On 10/26/05, Peter Coppinger [EMAIL PROTECTED] wrote:
When a function is called and the result outputted directly,
an extra space is prepended!
For Example:
might i suggest output=false?
cffunction name=spaceTest output=false
-Original Message-
From: Justin D. Scott [mailto:[EMAIL PROTECTED]
Sent: 26 October 2005 16:29
To: CF-Talk
Subject: RE: ColdFusion Bug :- functions return additional spaces(!)
When a function is called and the result
Simply add output=false to your cffunction. Problem solved.
Simple as that, I feel thick - Thanks Ray!!!
RTFM eh! lol
-Original Message-
From: Raymond Camden [mailto:[EMAIL PROTECTED]
Sent: 26 October 2005 16:33
To: CF-Talk
Subject: Re: ColdFusion Bug :- functions return additional
9 matches
Mail list logo