anil maran wrote:
> i have a textbox in a webform
> i save it in postgres
> in postgres, it has several newlines and it is properly displayed
> when i redisplay using cheetah
> it just displays in a single line and looks ugly
>
> is there a simple way to replace newlines with <br >

s.replace('\n', '<br>')

Kent

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to