Fix "red letter" versions of Crosswalk Bibles.

bzr-revno: 732
This commit is contained in:
Raoul Snyman 2010-03-11 11:15:39 +02:00
commit da73313be1

View File

@ -223,6 +223,10 @@ class CWExtract(BibleCommon):
for part in verse.contents: for part in verse.contents:
if str(part)[0] != u'<': if str(part)[0] != u'<':
versetext = versetext + part versetext = versetext + part
elif part and part.attrMap and part.attrMap[u'class'] == u'WordsOfChrist':
for subpart in part.contents:
if str(subpart)[0] != '<':
versetext = versetext + subpart
versetext = versetext.strip(u'\n\r\t ') versetext = versetext.strip(u'\n\r\t ')
verses[versenumber] = versetext verses[versenumber] = versetext
return SearchResults(bookname, chapter, verses) return SearchResults(bookname, chapter, verses)