unicode, bitch (breaking bad)

This commit is contained in:
Kenneth Reitz
2013-09-30 05:02:55 -04:00
parent 913e02af72
commit a8b44eabcd
+2 -2
View File
@@ -19,8 +19,8 @@ def readability(url):
def convert(html, title=None):
if title:
title = '# {}'.format(title)
html = '\n\n'.join([title, html])
title = u'# {}'.format(title)
html = u'\n\n'.join([title, html])
return html2text(html)