forked from openlp/openlp
Fix KJ21 from BibleGateway
bzr-revno: 1389
This commit is contained in:
commit
e943b0a1f6
@ -227,6 +227,10 @@ class BGExtract(object):
|
||||
cleanup = [(re.compile('\s+'), lambda match: ' ')]
|
||||
verses = BeautifulSoup(str(soup), markupMassage=cleanup)
|
||||
verse_list = {}
|
||||
# Cater for inconsistent mark up in the first verse of a chapter.
|
||||
first_verse = verses.find(u'versenum')
|
||||
if first_verse:
|
||||
verse_list[1] = unicode(first_verse.contents[0])
|
||||
for verse in verses(u'sup', u'versenum'):
|
||||
raw_verse_num = verse.next
|
||||
clean_verse_num = 0
|
||||
|
Loading…
Reference in New Issue
Block a user