opensubscriber
   Find in this group all groups
 
Unknown more information…

c : cf-talk@houseoffusion.com 23 February 2007 • 11:36PM -0500

Re: Line Breaks in Plain Text CFMail - GRRR!
by Rebecca Younes

REPLY TO AUTHOR
 
REPLY TO GROUP



Try this:

<cfif Len(ARGUMENTS.rsvpUserBadgeName)>Attendee Name Badge:
#ARGUMENTS.rsvpUserBadgeName##carr#
</cfif><cfif Len(ARGUMENTS.rsvpGuest01Name)>Guest Name:
#ARGUMENTS.rsvpGuest01Name##carr#
</cfif><cfif Len(ARGUMENTS.rsvpGuest01BadgeName)>Guest Name Badge:
#ARGUMENTS.rsvpGuest01BadgeName#</cfif>

It keeps the extra line breaks within the cfifs, while still maintaining readable code.

>So how do I get rid of the extra lines where CFIF statements are bypassed in
>the code?  The savecontent var that I'm building has about 35 cfif
>statements.
>
>-----Original Message-----
>From: Dave Phillips [mailto:cftalk@webt...]
>Sent: Saturday, January 27, 2007 5:15 PM
>To: CF-Talk
>Subject: RE: Line Breaks in Plain Text CFMail - GRRR!
>
>Remove your 'supresswhitespace' tag.  That supresses carriage returns if I
>remember correctly.
>
>Dave
>
>-----Original Message-----
>From: Mark Leder [mailto:mel@mark...]
>Sent: Saturday, January 27, 2007 4:10 PM
>To: CF-Talk
>Subject: Line Breaks in Plain Text CFMail - GRRR!
>
>
>I just cannot get this to work. Sending plain text email, want to force a
>line break.  I've tried chr(10), chr(13), chr(13) & chr(10), with and
>without pound signs,  restarted CFMX7. The arguments are outputting
>correctly. What's the trick to this?
>
><cfset carr = chr(13) & chr(10)>
>
><cfprocessingdirective suppresswhitespace="yes">
><cfsavecontent variable="VARIABLES.formFieldsCopy">
><cfoutput>
><cfif Len(ARGUMENTS.rsvpUserBadgeName)>Attendee Name Badge:
>#ARGUMENTS.rsvpUserBadgeName##carr#</cfif>
><cfif Len(ARGUMENTS.rsvpGuest01Name)>Guest Name:
>#ARGUMENTS.rsvpGuest01Name##carr#</cfif>
><cfif Len(ARGUMENTS.rsvpGuest01BadgeName)>Guest Name Badge:
>#ARGUMENTS.rsvpGuest01BadgeName#</cfif>
></cfoutput>
></cfsavecontent>
></cfprocessingdirective>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://www.adobe.com/products/coldfusion/flex2/

Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:270583
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=20547.15921.4

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.