Implemented gushies changes

This commit is contained in:
Philip Ridout 2012-07-22 21:20:53 +01:00
parent 1d4e5c9430
commit c6d85d3ab8
2 changed files with 3 additions and 3 deletions

View File

@ -450,7 +450,7 @@ class Renderer(object):
previous_html, previous_raw, html_lines, lines, separator, u'')
else:
previous_raw = separator.join(lines)
if previous_raw or previous_raw == u'':
if previous_raw is not None:
formatted.append(previous_raw)
log.debug(u'_paginate_slide - End')
return formatted

View File

@ -528,9 +528,9 @@ class EditSongForm(QtGui.QDialog, Ui_EditSongDialog):
for row in self.findVerseSplit.split(verse_list):
for match in row.split(u'---['):
for count, parts in enumerate(match.split(u']---\n')):
if count == 0 and len(parts) <= 0:
continue
if count == 0:
if len(parts) == 0:
continue
# handling carefully user inputted versetags
separator = parts.find(u':')
if separator >= 0: