Fix Biblegateway markup

bzr-revno: 2117
This commit is contained in:
Tim Bentley 2012-11-27 20:13:04 +00:00
commit 9ee1def1c8

View File

@ -94,7 +94,8 @@ class BGExtract(object):
"""
if isinstance(tag, NavigableString):
return None, unicode(tag)
elif tag.get('class') == 'versenum':
elif tag.get('class') == 'versenum' or \
tag.get('class') == 'versenum mid-line':
verse = unicode(tag.string)\
.replace('[', '').replace(']', '').strip()
return verse, None