durusmail: quixote-users: how to preserve \n's
how to preserve \n's
2003-12-01
2003-12-01
Re: how to preserve \n's
2003-12-01
2003-12-02
how to preserve \n's
Skip Montanaro
2003-12-01
    Albert> The html.nl2br function appears to do what I want, but it alters
    Albert> the data.  Meaning, I'm resubmitting the data back into another
    Albert> form but it has 
tags in it. Are you calling html.nl2br correctly? It works for me: >>> from quixote import html >>> sometext = """ ... line 1 ... line 2 ... line 3 ... """ >>> btext = html.nl2br(sometext) >>> btext \nline 1
\nline 2
\nline 3
\n'> >>> sometext '\nline 1\nline 2\nline 3\n' sometext is unmodified. That's what I'd insert into the hidden tag. Skip
reply