forked from openlp/openlp
review fixes
This commit is contained in:
parent
6436b05240
commit
1876d520ae
@ -278,18 +278,18 @@ class EasyWorshipSongImport(SongImport):
|
|||||||
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()
|
||||||
if len(verse) == 0:
|
if not verse:
|
||||||
continue
|
continue
|
||||||
verse_split = verse.split(u'\n', 1)
|
verse_split = verse.split(u'\n', 1)
|
||||||
first_line_is_tag = False
|
first_line_is_tag = False
|
||||||
# EW tags: verse, chorus, pre-chorus, bridge, tag,
|
# EW tags: verse, chorus, pre-chorus, bridge, tag,
|
||||||
# intro, ending, slide
|
# intro, ending, slide
|
||||||
for type in VerseType.Names+['tag', 'slide']:
|
for type in VerseType.Names+[u'tag', u'slide']:
|
||||||
type = type.lower()
|
type = type.lower()
|
||||||
ew_tag = verse_split[0].strip().lower()
|
ew_tag = verse_split[0].strip().lower()
|
||||||
if ew_tag.startswith(type):
|
if ew_tag.startswith(type):
|
||||||
verse_type = type[0]
|
verse_type = type[0]
|
||||||
if type == 'tag' or type == 'slide':
|
if type == u'tag' or type == u'slide':
|
||||||
verse_type = VerseType.Tags[VerseType.Other]
|
verse_type = VerseType.Tags[VerseType.Other]
|
||||||
first_line_is_tag = True
|
first_line_is_tag = True
|
||||||
number_found = False
|
number_found = False
|
||||||
|
Loading…
Reference in New Issue
Block a user