more html fixes

This commit is contained in:
Andreas Preikschat 2011-06-29 09:38:04 +02:00
parent 795aae2277
commit 95743de19f
2 changed files with 4 additions and 4 deletions

View File

@ -111,7 +111,7 @@ class DisplayTags(object):
u'start html': u'<span style="text-decoration: underline;">',
u'end tag': u'{/u}', u'end html': u'</span>', u'protected': True})
base_tags.append({u'desc': translate('OpenLP.DisplayTags', 'Break'),
u'start tag': u'{br}', u'start html': u'<br>', u'end tag': u'',
u'start tag': u'{br}', u'start html': u'<br />', u'end tag': u'',
u'end html': u'', u'protected': True})
DisplayTags.add_html_tags(base_tags)

View File

@ -241,7 +241,7 @@ class Renderer(object):
new_pages = []
for page in pages:
while page.endswith(u'<br />'):
page = page[:-4]
page = page[:-6]
new_pages.append(page)
return new_pages
@ -357,8 +357,8 @@ class Renderer(object):
The words to be fitted on the slide split into lines.
``line_end``
The text added after each line. Either ``u' '`` or ``u'<br />``. This
is needed for bibles.
The text added after each line. Either ``u' '`` or ``u'<br />``.
This is needed for bibles.
"""
log.debug(u'_paginate_slide_words - Start')
formatted = []