Fix BibleGateway searches for BeautifulSoup 3.1

bzr-revno: 1122
This commit is contained in:
Jon Tibble 2010-11-24 01:06:36 +00:00
commit 3ae6d7db97

View File

@ -213,7 +213,7 @@ class BGExtract(object):
finally:
if not page:
return None
cleaner = [(re.compile('&nbsp;|<br />'), lambda match: '')]
cleaner = [(re.compile('&nbsp;|<br />|\'\+\''), lambda match: '')]
soup = None
try:
soup = BeautifulSoup(page, markupMassage=cleaner)