On Tue, Oct 23, 2007 at 06:30:18AM -0700, Abandoned wrote regarding How can i protect text format ?: > > 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 ? > > -- > http://mail.python.org/mailman/listinfo/python-list
Are you sure they're getting lost on the way into the DB? Could they be getting lost on the way out? Say... into an HTML page? You need to pinpoint your problem more clearly to get a helpful response. Cheers, Cliff -- http://mail.python.org/mailman/listinfo/python-list