forked from openlp/openlp
Head
This commit is contained in:
commit
3eaf7a0738
@ -161,8 +161,9 @@ class Renderer(object):
|
|||||||
html_text = u''
|
html_text = u''
|
||||||
styled_text = u''
|
styled_text = u''
|
||||||
for line in text:
|
for line in text:
|
||||||
styled_line = expand_tags(line) + line_end
|
styled_line = expand_tags(line)
|
||||||
styled_text += styled_line
|
if styled_text:
|
||||||
|
styled_text += line_end + styled_line
|
||||||
html = self.page_shell + styled_text + u'</div></body></html>'
|
html = self.page_shell + styled_text + u'</div></body></html>'
|
||||||
self.web.setHtml(html)
|
self.web.setHtml(html)
|
||||||
# Text too long so go to next page
|
# Text too long so go to next page
|
||||||
@ -171,6 +172,8 @@ class Renderer(object):
|
|||||||
html_text = u''
|
html_text = u''
|
||||||
styled_text = styled_line
|
styled_text = styled_line
|
||||||
html_text += line + line_end
|
html_text += line + line_end
|
||||||
|
if line_break:
|
||||||
|
html_text = html_text[:len(html_text)-4]
|
||||||
formatted.append(html_text)
|
formatted.append(html_text)
|
||||||
log.debug(u'format_slide - End')
|
log.debug(u'format_slide - End')
|
||||||
return formatted
|
return formatted
|
||||||
|
@ -306,6 +306,7 @@ class ServiceItem(object):
|
|||||||
filename = os.path.join(path, text_image[u'title'])
|
filename = os.path.join(path, text_image[u'title'])
|
||||||
self.add_from_command(
|
self.add_from_command(
|
||||||
path, text_image[u'title'], text_image[u'image'] )
|
path, text_image[u'title'], text_image[u'image'] )
|
||||||
|
self._new_item()
|
||||||
|
|
||||||
def merge(self, other):
|
def merge(self, other):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user