forked from openlp/openlp
changed variables to result
This commit is contained in:
parent
59c6e00bf1
commit
98d2247f10
@ -180,10 +180,10 @@ class EasyWorshipSongImport(SongImport):
|
|||||||
self.addAuthor(author_name.strip())
|
self.addAuthor(author_name.strip())
|
||||||
if words:
|
if words:
|
||||||
# Format the lyrics
|
# Format the lyrics
|
||||||
words = strip_rtf(words, self.encoding)
|
result = strip_rtf(words, self.encoding)
|
||||||
if words is None:
|
if result is None:
|
||||||
return
|
return
|
||||||
words, self.encoding = words
|
words, self.encoding = result
|
||||||
verse_type = VerseType.Tags[VerseType.Verse]
|
verse_type = VerseType.Tags[VerseType.Verse]
|
||||||
for verse in SLIDE_BREAK_REGEX.split(words):
|
for verse in SLIDE_BREAK_REGEX.split(words):
|
||||||
verse = verse.strip()
|
verse = verse.strip()
|
||||||
|
@ -109,10 +109,10 @@ class SongProImport(SongImport):
|
|||||||
self.finish()
|
self.finish()
|
||||||
return
|
return
|
||||||
if u'rtf1' in text:
|
if u'rtf1' in text:
|
||||||
text = strip_rtf(text, self.encoding)
|
result = strip_rtf(text, self.encoding)
|
||||||
if text is None:
|
if result is None:
|
||||||
return
|
return
|
||||||
text, self.encoding = text
|
text, self.encoding = result
|
||||||
text = text.rstrip()
|
text = text.rstrip()
|
||||||
if not text:
|
if not text:
|
||||||
return
|
return
|
||||||
|
@ -150,10 +150,10 @@ class SundayPlusImport(SongImport):
|
|||||||
verse_type = HOTKEY_TO_VERSE_TYPE[value]
|
verse_type = HOTKEY_TO_VERSE_TYPE[value]
|
||||||
if name == 'rtf':
|
if name == 'rtf':
|
||||||
value = self.unescape(value)
|
value = self.unescape(value)
|
||||||
verse = strip_rtf(value, self.encoding)
|
result = strip_rtf(value, self.encoding)
|
||||||
if verse is None:
|
if result is None:
|
||||||
return
|
return
|
||||||
verse, self.encoding = verse
|
verse, self.encoding = result
|
||||||
lines = verse.strip().split('\n')
|
lines = verse.strip().split('\n')
|
||||||
# If any line inside any verse contains CCLI or
|
# If any line inside any verse contains CCLI or
|
||||||
# only Public Domain, we treat this as special data:
|
# only Public Domain, we treat this as special data:
|
||||||
|
Loading…
Reference in New Issue
Block a user