I have a function that takes a string, manipulates (encrypts, etc.) it and
returns it.

For Example:

#encode(value="Test string")#
Result: "blahblahblah"

When I output the result directly to the screen:

<CFOUTPUT>"#encode(value='Test String')#"<CFOUTPUT>
Result: " blahblahblah"

The result has an extra space at the beginning.  When I output the value
from within the function, the result doesn't have the space.

When I assign the returned value to a variable and output the variable:

<CFSET dummy = encode(value='Test String')>
<CFOUTPUT>"#dummy#"</CFOUTPUT>
Result: "blahblahblah"

The result is fine.

Any thoughts on why the output the result of the function directly would
result in the extra space?

I am dumbfounded...or just dumb ;-)

Thanks,
Brian
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to