> I'm trying to take plain text from a database or text 
> file and display it on a web page. Problem is that the 
> CRLF characters don't work in HTML. So, I tried 
> converting them using:
> 
> <CFSet tmpCRLF = Chr(13)&Chr(10)>
> <CFSet HTMLBody = #Replace(Body,tmpCRLF,tmpCRLF&"<BR>")#>
> 
> 
> But that doesn't work. I still get the same run-on 
> paragraph.
> 
> Any suggestions how I do this? I'm sure it's easy.

I think that the Replace function requires a fourth argument, "ALL", if you
want it to replace all instances. Alternatively, you could just wrap the
output in the PRE tag, I guess.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to