forked from openlp/openlp
Fix biblegateway for BeautifulSoup 3.1
This commit is contained in:
parent
e9e895f969
commit
f63625b72f
@ -213,7 +213,7 @@ class BGExtract(object):
|
||||
finally:
|
||||
if not page:
|
||||
return None
|
||||
cleaner = [(re.compile(' |<br />'), lambda match: '')]
|
||||
cleaner = [(re.compile(' |<br />|\'\+\''), lambda match: '')]
|
||||
soup = None
|
||||
try:
|
||||
soup = BeautifulSoup(page, markupMassage=cleaner)
|
||||
|
Loading…
Reference in New Issue
Block a user