Why not just translate it all after you've got it from the user?  Then you
don't have to train the user on anything.

<CFSET NewText=ParagraphFormat(IncomingText)>

Or, if that's just too limiting, do it manually:

<CFSET CrLf=Chr(13) & Chr(10)>
<CFSET NewText=Replace(Replace(IncomingText,CrLf &
CrLf,"<P>","ALL"),CrLf,"<BR>","ALL")>

-R


-----Original Message-----
From: AustralianAccommodation.com Pty. Ltd.
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 01, 2000 12:51 PM
To: [EMAIL PROTECTED]
Subject: Further to Carriage Return Question


I have an input field where the user is able to enter in up to 12 lines of
text. Considering that those entering the text via the website have no html
knowledge is there some way to execute carriage returns by them as they
require to separate paragraphs or do I need to instruct them to use the <br>
tag

----- Original Message -----
From: Philip Arnold - ASP <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 02, 2000 2:32 AM
Subject: RE: How do I include a carriage return into my string? (Troy)


| > I want to include a carriage return in my coldfusion string ( Not the
| > html <br> tag ).
| > Is this the correct way?
| >
| > <cfset str = "Hello World" & Chr(13) & Chr(10)>
| >
| > Is their not a C style like '\n'?
|
| You have to put the exact character in, so Chr(13) & chr(10) would be the
| correct way.
|
| Philip Arnold
| ASP Multimedia Limited
| T: +44 (0)20 8680 1133
|
| "Websites for the real world"
|
| **********************************************************************
| This email and any files transmitted with it are confidential and
| intended solely for the use of the individual or entity to whom they
| are addressed. If you have received this email in error please notify
| the system manager.
| **********************************************************************
|
|
| --------------------------------------------------------------------------
----
| Archives: http://www.mail-archive.com/[email protected]/
| To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
|

----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to