diff --git a/openlp/plugins/songs/lib/__init__.py b/openlp/plugins/songs/lib/__init__.py index a9e360ceb..eb616d30d 100644 --- a/openlp/plugins/songs/lib/__init__.py +++ b/openlp/plugins/songs/lib/__init__.py @@ -435,7 +435,7 @@ class StripRtf(): u'writereservhash', u'xe', u'xform', u'xmlattrname', u'xmlattrvalue', u'xmlclose', u'xmlname', u'xmlnstbl', u'xmlopen')) # Translation of some special characters. - SPECIALCHARS = { + SPECIAL_CHARS = { u'par': u'\n', u'sect': u'\n\n', # Required page and column break. @@ -520,8 +520,8 @@ class StripRtf(): curskip = 0 if word in self.DESTINATIONS: ignorable = True - elif word in self.SPECIALCHARS: - out.append(self.SPECIALCHARS[word]) + elif word in self.SPECIAL_CHARS: + out.append(self.SPECIAL_CHARS[word]) elif word == u'uc': ucskip = int(arg) elif word == u' ': diff --git a/openlp/plugins/songs/lib/sundayplusimport.py b/openlp/plugins/songs/lib/sundayplusimport.py index cc36896e9..b9b985e8f 100644 --- a/openlp/plugins/songs/lib/sundayplusimport.py +++ b/openlp/plugins/songs/lib/sundayplusimport.py @@ -42,7 +42,7 @@ class SundayPlusImport(SongImport): The format examples can be found attached to bug report at """ - HOTKEYTOVERSETYPE = { + HOTKEY_TO_VERSE_TYPE = { u'1': u'v1', u'2': u'v2', u'3': u'v3', @@ -147,8 +147,8 @@ class SundayPlusImport(SongImport): # Hotkey always appears after MARKER_NAME, so it # effectively overrides MARKER_NAME, if present. if len(value) and \ - value in self.HOTKEYTOVERSETYPE.keys(): - verse_type = self.HOTKEYTOVERSETYPE[value] + value in self.HOTKEY_TO_VERSE_TYPE.keys(): + verse_type = self.HOTKEY_TO_VERSE_TYPE[value] if name == 'rtf': value = self.unescape(value) verse = self.rtf.strip_rtf(value, self.encoding)