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)
|
thisentry.readability = fetch_readability(entry.link)
|
||||||
if feed.html2textsummary:
|
if feed.html2textsummary:
|
||||||
print ' converting summary'
|
print ' converting summary'
|
||||||
|
h2t = html2text.HTML2Text()
|
||||||
|
h2t.body_width = 0
|
||||||
summary = thisentry.summary.decode('latin-1')
|
summary = thisentry.summary.decode('latin-1')
|
||||||
summary = html2text.html2text(summary)
|
summary = h2t.handle(summary)
|
||||||
thisentry.summary = summary.encode('latin-1', 'replace')
|
thisentry.summary = summary.encode('latin-1', 'replace')
|
||||||
feed.entry.append(thisentry)
|
feed.entry.append(thisentry)
|
||||||
return 1
|
return 1
|
||||||
|
773
html2text.py
773
html2text.py
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user