split song verse order at consecutive whitespaces and not just u' '

This commit is contained in:
M2j 2010-11-04 20:32:43 +01:00
parent 36a71d8764
commit 4294ae83b8
2 changed files with 2 additions and 2 deletions

View File

@ -527,7 +527,7 @@ class EditSongForm(QtGui.QDialog, Ui_EditSongDialog):
return False
if self.song.verse_order:
order = []
order_names = self.song.verse_order.split(u' ')
order_names = self.song.verse_order.split(None)
for item in order_names:
if len(item) == 1:
order.append(item.lower() + u'1')

View File

@ -358,7 +358,7 @@ class SongMediaItem(MediaManagerItem):
verse[1][:30], unicode(verse[1]), verseTag)
else:
#Loop through the verse list and expand the song accordingly.
for order in song.verse_order.upper().split(u' '):
for order in song.verse_order.upper().split(None):
if len(order) == 0:
break
for verse in verseList: