Split if line contains 3 --- can allow for spaces at end of line

This commit is contained in:
Tim Bentley 2009-10-26 08:23:43 +00:00
parent 4833f7cd0b
commit 6dd0db436e

View File

@ -339,7 +339,7 @@ class EditSongForm(QtGui.QDialog, Ui_EditSongDialog):
verse_list = self.verse_form.getVerse()
verse_list = verse_list.replace(u'\r\n', u'\n')
self.VerseListWidget.clear()
for row in verse_list.split(u'\n---\n'):
for row in verse_list.split(u'\n---'):
self.VerseListWidget.addItem(row)
self.VerseListWidget.repaint()