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???? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists