forked from openlp/openlp
indentation fix, songbook number back to unicode, these sometimes contain letters like 104a
This commit is contained in:
parent
ff80150fc1
commit
ddcda85090
@ -112,8 +112,8 @@ class EasiSlidesImport(SongImport):
|
|||||||
|
|
||||||
def _add_number(self, song):
|
def _add_number(self, song):
|
||||||
try:
|
try:
|
||||||
number = int(song.SongNumber)
|
number = unicode(song.SongNumber)
|
||||||
if number != 0:
|
if number != u'0':
|
||||||
self.song_number = number
|
self.song_number = number
|
||||||
except UnicodeDecodeError:
|
except UnicodeDecodeError:
|
||||||
log.exception(u'Unicode decode error while decoding SongNumber')
|
log.exception(u'Unicode decode error while decoding SongNumber')
|
||||||
@ -206,8 +206,7 @@ class EasiSlidesImport(SongImport):
|
|||||||
# if the song has regions
|
# if the song has regions
|
||||||
regions = (len(regionlines) > 0)
|
regions = (len(regionlines) > 0)
|
||||||
# if the regions are inside verses
|
# if the regions are inside verses
|
||||||
regionsInVerses = (regions and \
|
regionsInVerses = (regions and regionlines[regionlines.keys()[0]] > 1)
|
||||||
regionlines[regionlines.keys()[0]] > 1)
|
|
||||||
MarkTypes = {
|
MarkTypes = {
|
||||||
u'CHORUS': u'C',
|
u'CHORUS': u'C',
|
||||||
u'VERSE': u'V',
|
u'VERSE': u'V',
|
||||||
|
Loading…
Reference in New Issue
Block a user