Fix song saving error. Reverting 1036 as this is causing an exception in song saving

Fixes: https://launchpad.net/bugs/691952
This commit is contained in:
Tim Bentley 2010-12-21 16:32:46 +00:00
parent f444aacdba
commit f1eb140954
1 changed files with 2 additions and 1 deletions

View File

@ -736,7 +736,8 @@ class EditSongForm(QtGui.QDialog, Ui_EditSongDialog):
verseId = unicode(item.data(QtCore.Qt.UserRole).toString())
bits = verseId.split(u':')
sxml.add_verse_to_lyrics(bits[0], bits[1], unicode(item.text()))
text = text + whitespace.sub(u' ',
# text = text + whitespace.sub(u' ',
text = text + re.sub(r'\W+', u' ',
unicode(self.VerseListWidget.item(i, 0).text())) + u' '
if (bits[1] > u'1') and (bits[0][0] not in multiple):
multiple.append(bits[0][0])