Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Carriage Returns into <BR>'s

Quote Reply
Carriage Returns into <BR>'s
Hi:

OK, this is somewhat off topic- hope not too much so, though!

I wrote a quick Reviews mod, and it has been running well. Except, I have noted, formating is pretty screwed up. I tried using the <pre> tags, and did not like that.

I am gessing there is probably an easy subsitution i can use that will replace returns with <br>, but I am too much a newbie to know exactly how. I know it should look something like this:

Quote:
$review =~ s/XXX/<BR>/g;
where XXX is whatever code I need to use for a carriage return
Can anyone point me in the right direction, and am I aiming in the right direction?

Thanks!

dave
dave

Big Cartoon DataBase
Big Comic Book DataBase

Last edited by:

carfac: Nov 21, 2001, 4:10 PM
Quote Reply
Re: [carfac] Carriage Returns into <BR>'s In reply to
Nevermind! I figured it out: /n. Duh!

dave
dave

Big Cartoon DataBase
Big Comic Book DataBase