How can i protect text format ?

Abandoned besturk at gmail.com
Tue Oct 23 09:48:04 EDT 2007


On Oct 23, 4:41 pm, "J. Clifford Dyer" <j... at sdf.lonestar.org> wrote:
> 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

Yes when i selected the data it have one row (there isn't \n)




More information about the Python-list mailing list