On 10/23/07, Abandoned <[EMAIL PROTECTED]> wrote: > Hi.. > I want to do a forum with python but i have a problem.. > > I have a <textarea> and i write: > line 1 hi > line 2 how r u > > And then i save to this database ( colomn data type is text) > And than it looks "line 1 hi line 2 how r u".. > How can i protect \n characters ?
I don't think the issue has anything to do with python. I guess while you are displaying the text into an HTML page the "\n" characters should be replaced by "<br />" to appear as newlines. Cheers, -- Amit Khemka -- http://mail.python.org/mailman/listinfo/python-list