On Sun, May 18, 2008 at 6:46 AM, Anand Chitipothu <[EMAIL PROTECTED]>
wrote:
>
> > this requires special syntax right? I am talking about user input like
text
> > or user sending emails... what do you use for these?
>
> I  don't think I got your question right.

for example, after I use markdown, there are still '\n' characters . these
should be replaced by <br />'s right?
and if there are any links in the text, i want to be able to make the
clickable..


>>> comment='''
... how do i convert
...
... this text to html with correct line breaks, and get this link
http://www.webpy.org
...
... great!!!'''
>>>

>>> comment
'\nhow do i convert\n\nthis text to html with correct line breaks, and get
this link http://www.webpy.org\n\ngreat!!!'

>>> markdown.markdown(comment)
u'<p>how do i convert\n</p>\n<p>this text to html with correct line breaks,
and get this link http://www.webpy.org\n</p>\n<p>great!!!\n</p>'

--~--~---------~--~----~------------~-------~--~----~
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