rendering fixes

bzr-revno: 561
This commit is contained in:
Tim Bentley 2009-09-20 20:56:34 +01:00
commit b9fee1a573
2 changed files with 3 additions and 2 deletions

View File

@ -100,7 +100,8 @@ class ServiceItem(object):
lines = u'' lines = u''
for line in format: for line in format:
lines += line + u'\n' lines += line + u'\n'
self.frames.append({u'title': slide[u'title'],u'text':lines, title = lines.split(u'\n')[0]
self.frames.append({u'title': title ,u'text':lines,
u'image': frame}) u'image': frame})
elif self.service_item_type == ServiceType.Command: elif self.service_item_type == ServiceType.Command:
self.frames = self.service_frames self.frames = self.service_frames

View File

@ -131,7 +131,7 @@ class SongXMLParser(object):
try: try:
self.song_xml = ElementTree(element=XML(xml)) self.song_xml = ElementTree(element=XML(xml))
except: except:
log.debug(u'Invalid xml %s', xml) log.exception(u'Invalid xml %s', xml)
def get_verses(self): def get_verses(self):
""" """