On 14-Oct-07, at 11:57 AM, Ken wrote:

> hi Anand
> i used it in my app, it works,thank you
>
> def make_html(c):
>     return web.websafe(c).replace(' ', ' ').replace('\r\n',  
> '<br />')

There is a problem with this. Since you are replacing every space  
with &nbsp;, long lines will never break.
Replacing 2 spaces with one space and one &nbsp; solves the problem.




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to