in reply to Re: Simple Question for you guys.
in thread converting carriage returns to <br> tags (was: Simple Question for you guys)

A good suggestion for getting the job done right (which I'm always a fan of), but it doesn't hurt to note that the browser will display things okay without converting both. As long as a <br /> tag is there.

Replies are listed 'Best First'.
Re: Re: Re: Simple Question for you guys.
by voyager (Friar) on May 18, 2001 at 21:00 UTC
    True. What caused me pain was wanting to convert two newlines to two BR tags, but leave single newlines alone.

    Trying to match on \n\n was not working because what was there was really \n\r\n\r.