← Back to team overview

openlp-core team mailing list archive

[Merge] lp:~raoul-snyman/openlp/biblefixes into lp:openlp

 

Raoul Snyman has proposed merging lp:~raoul-snyman/openlp/biblefixes into lp:openlp.

Requested reviews:
  OpenLP Core (openlp-core)


Fixed up the problems with red letter versions of the Bibles on Crosswalk.
-- 
https://code.launchpad.net/~raoul-snyman/openlp/biblefixes/+merge/21117
Your team OpenLP Core is subscribed to branch lp:openlp.
=== modified file 'openlp/plugins/bibles/lib/http.py'
--- openlp/plugins/bibles/lib/http.py	2010-03-09 19:43:11 +0000
+++ openlp/plugins/bibles/lib/http.py	2010-03-11 06:18:13 +0000
@@ -223,6 +223,10 @@
             for part in verse.contents:
                 if str(part)[0] != u'<':
                     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 ')
             verses[versenumber] = versetext
         return SearchResults(bookname, chapter, verses)


Follow ups