Hi Mack, Thanks, that did it. Whew! I was trying all kinds of stuff. Ray
At 09:23 PM 12/4/2001 +0200, you wrote: > Dear Ryan, > > On Linux the line feed is composed not of the Chr(13) and Chr(10) > but only >of the Chr(10). So on Linux you should replace the Chr(10) with a "<BR>". >Your code strips the Chr(10), but there is no Chr(13) to be replaced. > > So here is a solution: > <cfset newReportBody = replacenocase(report_body, chr(13), "", > "all") > > <cfset newReportBody = replacenocase(newReportBody, chr(10), "<br>", >"all")> > > Mack. > > > > > > > > I am doing an insert on a variable called report_body where I do a > > > > <cfset newReportBody = replacenocase(report_body, chr(10), "", "all") > > > <cfset newReportBody = replacenocase(newReportBody, chr(13), > > "<br>", "all")> > > <cfquery ds="dsname" name="name"> > > do insert > > </cfquery> > > > > > > Then when the page reloads I fill in the form fields with the values > > replaced back > > > > <cfset newReportBody = replacenocase(report_body, "<br>", chr(13), all)> > > <textarea attributes...>#newReportBody#</textarea> > > > > But it doesn't put in the line feeds for Unix/Netscape. > > Can anyone tell me what I should be replacing for line feeds in unix???? > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Get the mailserver that powers this list at http://www.coolfusion.com 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

