Windows produces the CR LF combo. carriage return (13) + line feed (10).
Linux only uses the LF for end of lines. Mac used to only use CR. But I believe this has changed to LF since OSX is a UNIX based OS. The brief history is that these commands were used to control the old line printers back in the day. (70's) Line feed would advance the paper one line up (meaning to the next line). Carriage return only returns the print carriage to the start position and did not advance the paper. /end Friday Trivial Wil Genovese One man with courage makes a majority. -Andrew Jackson A fine is a tax for doing wrong. A tax is a fine for doing well. On Jan 23, 2009, at 10:21 AM, Adrian Lynch wrote: > Be careful with doing the replace on 13 & 10, you might want to > reduce them > down to one thing before replacing with the <br />, some OSes (would > love to > know which and whether this is true or an old wives tale) don't > produce 13 & > 10. > > Adrian > >> -----Original Message----- >> From: Jason Fisher [mailto:[email protected]] >> Sent: 23 January 2009 16:09 >> To: cf-talk >> Subject: Re: New line >> >> And, if you are pulling that data from a database and if that data >> got >> in there from a textarea, you can do a replace to get <br /> where >> you >> need it: >> >> <cfset crlf = chr(13) & chr(10) /> >> >> <cfoutput> >> #replace(str1, crlf, "<br />", "all")# >> </cfoutput> > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:318417 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

