updated html2text-module to version 3.200.3
This commit is contained in:
parent
46e163864a
commit
7cadfb8bd1
@ -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
|
||||
|
909
html2text.py
909
html2text.py
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user