Tweak formatting of comments downloaded from Amazon

This commit is contained in:
Kovid Goyal 2010-11-17 12:51:52 -07:00
parent 0e715238c7
commit 67cd411003

View File

@ -131,7 +131,8 @@ def comments_to_html(comments):
def sanitize_comments_html(html):
text = html2text(html)
md = markdown.Markdown(safe_mode=True)
return md.convert(text)
cleansed = re.sub('\n+', '', md.convert(text))
return cleansed
def test():
for pat, val in [