Yeah, like:

row.myfield.replace('\n', '<br/>')

I will also check if I need to take care of tabs like this as well.

Thanks.



Em quarta-feira, 18 de julho de 2012 21h41min04s UTC-3, Anthony escreveu:
>
> The line breaks should still be in the text, but if you're trying to 
> display the content in HTML, note that HTML does not display line breaks 
> (unless you use the <br /> tag). If that's the issue, for some possible 
> solutions, see http://stackoverflow.com/a/10584182/440323.
>
> Anthony
>
> On Wednesday, July 18, 2012 8:32:19 PM UTC-4, Elcimar wrote:
>>
>> Hello
>> I was able to retrieve messages as plain text from e-mails using 
>> poplib<http://docs.python.org/library/poplib.html>
>> .
>> This kind of data has tabs and a lot of \n, but when I store into text 
>> fields they are all lost and the text wraps around as it is a single line.
>>
>> What should I do to store the original text into a table? 
>>
>

-- 



Reply via email to