Re: Replacing line breaks and paragraph breaks with HTML equivelents

2000-06-04 Thread John Allred
Dennis Powers wrote: Dave, BTW: Although I have never taken your course, you have taught me much through this medium and for that I thank you. Me too. Hey! You got a course? Where can I find out more? -- John Allred / Jackson, Mississippi Mississippi Counties http://www.mscounties.com/

Re: [Re: Replacing line breaks and paragraph breaks with HTML equivelents]

2000-06-04 Thread double-down
function stripcr() "pan" [EMAIL PROTECTED] wrote: From: Dave Watts [EMAIL PROTECTED] It can't be too stupid a question, because I don't really know what it is. I believe it's an instruction to the printer to move to the next line, but given that's what a carriage return is as well, I don't

RE: Replacing line breaks and paragraph breaks with HTML equivelents

2000-06-04 Thread Dave Watts
Me too. Hey! You got a course? Where can I find out more? It's certainly not "my" course - I can't take credit for that. I'm a certified Allaire instructor, and teach Allaire courses through Allaire and through Fig Leaf. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202)

Re: Replacing line breaks and paragraph breaks with HTML equivelents

2000-06-03 Thread pan
From: Dave Watts [EMAIL PROTECTED] It can't be too stupid a question, because I don't really know what it is. I believe it's an instruction to the printer to move to the next line, but given that's what a carriage return is as well, I don't have a good answer. In Windows, text files usually

RE: Replacing line breaks and paragraph breaks with HTML equivelents

2000-06-03 Thread Dennis Powers
Cc: [EMAIL PROTECTED] Subject: RE: Replacing line breaks and paragraph breaks with HTML equivelents Thanks Dave. I feel kind of silly. I guess I just needed a second pair of eyes. That happens a lot to me. I usually forget the order of arguments, and end up looking them up in Studio. That's one nice t

RE: Replacing line breaks and paragraph breaks with HTML equivelents

2000-06-01 Thread Dave Watts
I'm currently working on building a fully threaded message board. Progress is going well however I'm having a minor problem. I'm trying to replace user enter line breaks with br tags but I'm not having any luck. Here is what I've tried, ReplaceNoCase(strClean, "br", Chr(13),"ALL") If

RE: Replacing line breaks and paragraph breaks with HTML equivelents

2000-06-01 Thread Perez, Bismark
switch around the position of the br and Char(13) -Original Message- From: Lee Moore [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 01, 2000 11:03 AM To: ColdFusion Discussion List Subject: Replacing line breaks and paragraph breaks with HTML equivelents Hi all, I'm currently

RE: Replacing line breaks and paragraph breaks with HTML equivelents

2000-06-01 Thread Pablo Nevares
Here's an option from the Docs: - ParagraphFormat Returns string with converted single newline characters (CR/LF sequences) into spaces and double newline characters into HTML paragraph markers (P). - I wish they'd do one that replaces single newline characters with BR, but maybe that's

Re: Replacing line breaks and paragraph breaks with HTML equivelents

2000-06-01 Thread Lee Moore
- Original Message - From: Dave Watts [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, June 01, 2000 1:03 PM Subject: RE: Replacing line breaks and paragraph breaks with HTML equivelents If you're trying to replace carriage returns with BR tags, you've got

RE: Replacing line breaks and paragraph breaks with HTML equivelents

2000-06-01 Thread Chris
You just have the arguments backwards. This is the fix: ReplaceNoCase(strClean, Chr(13), "BR", "ALL") -Original Message- From: Lee Moore [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 01, 2000 8:03 AM To: ColdFusion Discussion List Subject: Replacing line breaks and paragraph

Re: Replacing line breaks and paragraph breaks with HTML equivelents

2000-06-01 Thread Serge Ohotin
I believe that you have the two strings mixed up. In your code, every "br" is replaced with Chr(13), not the other way around... Hope I'm reading it right... Serge - Original Message - From: Lee Moore [EMAIL PROTECTED] To: ColdFusion Discussion List [EMAIL PROTECTED] Sent: Thursday,

RE: Replacing line breaks and paragraph breaks with HTML equivelents

2000-06-01 Thread Dave Watts
Thanks Dave. I feel kind of silly. I guess I just needed a second pair of eyes. That happens a lot to me. I usually forget the order of arguments, and end up looking them up in Studio. That's one nice thing about the new function completion feature - it cuts down on my errors significantly.

RE: Replacing line breaks and paragraph breaks with HTML equivelents

2000-06-01 Thread Sean Daniels
ReplaceNoCase(strClean, "br", Chr(13),"ALL") What am I missing. Try this: cfset crlf = chr(13)chr(10) cfset yourVar = replacelist(strClean,"#crlf#","br") Or, even easier: cfset yourVar = paragraphformat(strClean) HTH - Sean Sean Daniels Manager, Engineering