Well, it happens in a text only email (therefore no &nbsp is possible)

currently I am composing a string using

<cfif q_Select.sex is 0><cfset a_str_greeting = "Sir"><cfelse><cfset 
a_str_greeting = "Madame"></cfif>

<cfset a_str_greeting = a_Str_greeting & " " & q_select.surname>

This workaround does the job properly.

I think coldfusion is doing an "Auto-trim" which is unwanted in this 
case.

Best regards,

Peter

------------
Orginale Nachricht
Von: "Robertson-Ravo, Neil (RX)" <[EMAIL PROTECTED]>
Betreff: RE: Space is removed - unwanted
Datum/Zeit: Monday, 02. December 2002 11:12:48 

> not sure, but try using a &nbsp;
> 
> -----Original Message-----
> From: Peter Mayer [mailto:[EMAIL PROTECTED]]
> Sent: 02 December 2002 10:04
> To: CF-Talk
> Subject: Space is removed - unwanted
> 
> 
> Hello!
> 
> If I use the following statement I receive the following output:
> 
> SirSmith
> 
> <cfoutput>
> <cfif q_select.sex is 0>Sir<cfelse>Madame</cfif> #q_select.surname#
> </cfoutput>
> 
> The space between the cfif statement and the output is removed.
> 
> Is this a bug?
> 
> Best regards,
> 
> Peter 
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Reply via email to