updated html2text-module to version 3.200.3

This commit is contained in:
Ronald Schaten 2013-03-20 23:20:54 +01:00
parent 46e163864a
commit 7cadfb8bd1
2 changed files with 689 additions and 224 deletions

View File

@ -268,8 +268,10 @@ def process_feed_entry(session, feed, entry):
thisentry.readability = fetch_readability(entry.link)
if feed.html2textsummary:
print ' converting summary'
h2t = html2text.HTML2Text()
h2t.body_width = 0
summary = thisentry.summary.decode('latin-1')
summary = html2text.html2text(summary)
summary = h2t.handle(summary)
thisentry.summary = summary.encode('latin-1', 'replace')
feed.entry.append(thisentry)
return 1

File diff suppressed because it is too large Load Diff