clean up - not working

This commit is contained in:
Andreas Preikschat 2010-08-28 20:56:46 +02:00
parent 36e2f2e33f
commit 521b06ee8c

View File

@ -533,12 +533,13 @@ class BibleMediaItem(MediaManagerItem):
bible_text = u'%s %s %s\n\n' % (bible_text, verse_text, text) bible_text = u'%s %s %s\n\n' % (bible_text, verse_text, text)
# We have to be 'Continuous'. # We have to be 'Continuous'.
else: else:
# We add a line break if the previously verse has a different
# book or bible version.
if first:
bible_text = u'%s %s %s' % (bible_text, verse_text, text)
# split the line but do not replace line breaks in renderer # split the line but do not replace line breaks in renderer
service_item.add_capability(ItemCapabilities.NoLineBreaks) service_item.add_capability(ItemCapabilities.NoLineBreaks)
#text = text + u'\n'
if first:
bible_text = u'%s %s %s' % (bible_text, verse_text, text)
# We add a line break if the previously verse has a different
# book or bible version.
elif bible != old_bible or book != old_book: elif bible != old_bible or book != old_book:
bible_text = u'%s\n%s %s' % (bible_text, verse_text, bible_text = u'%s\n%s %s' % (bible_text, verse_text,
text) text)