From dbfd7796ba94767de2828bdfa8d0ca2b49fb1a72 Mon Sep 17 00:00:00 2001 From: Jon Tibble Date: Sat, 8 Jan 2011 18:50:06 +0000 Subject: [PATCH] Fix BibleGateway xrefs (Bug #700271) --- openlp/plugins/bibles/lib/http.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openlp/plugins/bibles/lib/http.py b/openlp/plugins/bibles/lib/http.py index ef663dfbe..d9210a275 100644 --- a/openlp/plugins/bibles/lib/http.py +++ b/openlp/plugins/bibles/lib/http.py @@ -231,6 +231,9 @@ class BGExtract(object): footnotes = soup.findAll(u'sup', u'footnote') if footnotes: [footnote.extract() for footnote in footnotes] + crossrefs = soup.findAll(u'sup', u'xref') + if crossrefs: + [crossref.extract() for crossref in crossrefs] cleanup = [(re.compile('\s+'), lambda match: ' ')] verses = BeautifulSoup(str(soup), markupMassage=cleanup) content = verses.find(u'div', u'result-text-style-normal')