Try using the Replace function as follows:

<cfset dispField = Replace(fieldname,Chr(10),"<br>","All")>

Then output dispField instead of fieldname.

Bob

-----Original Message-----
From: Andy Peterson [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 27, 2000 9:16 AM
To: CF-Talk
Subject: Proper formatting of output (capturing carriage returns)?


Hi,

People are entering comments into my forms but the formatting is lost upon
display. Upon the submission of a comment, I am automatically cfMailing
myself the information, and the formatting is intact, like so:

<!---User Comment automatically cfmailed to me using #Form.Comments#--->:
"Top Four Directory Databases
        1)OpenDirectory
        2)Snap
        3)Looksmart
        4)Yahoo ! Directory
Normally, you will... "

However, when I try to display it on an html page, this is what I get:

<!---User Comment as viewed in HTML using #ParagraphFormat(Comments)#--->:
"Top Four Directory Databases 1)OpenDirectory 2)Snap 3)Looksmart 4)Yahoo !
Directory Normally, you will... "

I've tried ParagraphFormat, HTMLEditFormat, but to no avail. Does something
need to be done to the text as it is placed in the database? The biggest
issue is capturing <br> - simple carriage returns. If I could get that to
work, it would make a huge difference in article appearance.

Thanks in advance,
Andy



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

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

Reply via email to