I use this (that I got from this list some months ago)

This before UPDATE or INSERT:

<cfset my_text = #ReplaceList(my_text,"#Chr(10)#,#Chr(10)##Chr(13)#", 
"<BR>,<P>")#>

This before showing in FORM and/or final page:

<cfset my_text = 
#ReplaceList(my_text,"<BR>,<P>","#Chr(10)#,#Chr(10)##Chr(13)#")#>


Seamus


At 03:55 pm 19/09/2002 , you wrote:
>Hi All
>
>Our site users are entering text into a Textarea field and we are finding
>that if they hit enter twice they get a new paragraph but if they only hit
>enter once it looks like a new line (in the textarea box) but when it is
>displayed on another page within a #ParagraphFormat()# tag the single
>linebreaks do not appear ie.
>
>Text entered into a textarea as:
>
>Line1
>Line2
>
>Line3
>
>Would appear (within a #ParagraphFormat()# on another page) as:
>
>Line 1 Line 2
>
>Line3
>
>Does anyone know how to get around this? I gather I am going to have to
>replace a special character with a <br> before outputting it - but I am
>having no luck...
>
>Thanks for any help.
>
>David
>
>
______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to