Merge lp:~trb143/openlp/bugfixes into lp:openlp

Proposed by Tim Bentley
Status: Merged
Merged at revision: not available
Proposed branch: lp:~trb143/openlp/bugfixes
Merge into: lp:openlp
Diff against target: None lines
To merge this branch: bzr merge lp:~trb143/openlp/bugfixes
Reviewer Review Type Date Requested Status
Martin Thompson (community) Approve
Review via email: mp+12141@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Tim Bentley (trb143) wrote :

Add error handling to song xml to see if I can discover the windows linux xml error I am having
Clean up slide titles where a slide is split by the renderer.

Revision history for this message
Martin Thompson (mjthompson) :
review: Approve
lp:~trb143/openlp/bugfixes updated
561. By Tim Bentley

rendering fixes

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'openlp/core/lib/serviceitem.py'
--- openlp/core/lib/serviceitem.py 2009-09-20 07:17:20 +0000
+++ openlp/core/lib/serviceitem.py 2009-09-20 18:47:18 +0000
@@ -100,7 +100,8 @@
100 lines = u''100 lines = u''
101 for line in format:101 for line in format:
102 lines += line + u'\n'102 lines += line + u'\n'
103 self.frames.append({u'title': slide[u'title'],u'text':lines,103 title = lines.split(u'\n')[0]
104 self.frames.append({u'title': title ,u'text':lines,
104 u'image': frame})105 u'image': frame})
105 elif self.service_item_type == ServiceType.Command:106 elif self.service_item_type == ServiceType.Command:
106 self.frames = self.service_frames107 self.frames = self.service_frames
107108
=== modified file 'openlp/core/lib/songxmlhandler.py'
--- openlp/core/lib/songxmlhandler.py 2009-09-08 19:58:05 +0000
+++ openlp/core/lib/songxmlhandler.py 2009-09-20 18:47:18 +0000
@@ -131,7 +131,7 @@
131 try:131 try:
132 self.song_xml = ElementTree(element=XML(xml))132 self.song_xml = ElementTree(element=XML(xml))
133 except:133 except:
134 log.debug(u'Invalid xml %s', xml)134 log.exception(u'Invalid xml %s', xml)
135135
136 def get_verses(self):136 def get_verses(self):
137 """137 """