From f1eb140954cb8482432925771eb51349d3bfe979 Mon Sep 17 00:00:00 2001 From: Tim Bentley Date: Tue, 21 Dec 2010 16:32:46 +0000 Subject: [PATCH] Fix song saving error. Reverting 1036 as this is causing an exception in song saving Fixes: https://launchpad.net/bugs/691952 --- openlp/plugins/songs/forms/editsongform.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openlp/plugins/songs/forms/editsongform.py b/openlp/plugins/songs/forms/editsongform.py index 21958d403..d88f39d8f 100644 --- a/openlp/plugins/songs/forms/editsongform.py +++ b/openlp/plugins/songs/forms/editsongform.py @@ -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])