forked from openlp/openlp
more html fixes
This commit is contained in:
parent
795aae2277
commit
95743de19f
@ -111,7 +111,7 @@ class DisplayTags(object):
|
|||||||
u'start html': u'<span style="text-decoration: underline;">',
|
u'start html': u'<span style="text-decoration: underline;">',
|
||||||
u'end tag': u'{/u}', u'end html': u'</span>', u'protected': True})
|
u'end tag': u'{/u}', u'end html': u'</span>', u'protected': True})
|
||||||
base_tags.append({u'desc': translate('OpenLP.DisplayTags', 'Break'),
|
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})
|
u'end html': u'', u'protected': True})
|
||||||
DisplayTags.add_html_tags(base_tags)
|
DisplayTags.add_html_tags(base_tags)
|
||||||
|
|
||||||
|
@ -241,7 +241,7 @@ class Renderer(object):
|
|||||||
new_pages = []
|
new_pages = []
|
||||||
for page in pages:
|
for page in pages:
|
||||||
while page.endswith(u'<br />'):
|
while page.endswith(u'<br />'):
|
||||||
page = page[:-4]
|
page = page[:-6]
|
||||||
new_pages.append(page)
|
new_pages.append(page)
|
||||||
return new_pages
|
return new_pages
|
||||||
|
|
||||||
@ -357,8 +357,8 @@ class Renderer(object):
|
|||||||
The words to be fitted on the slide split into lines.
|
The words to be fitted on the slide split into lines.
|
||||||
|
|
||||||
``line_end``
|
``line_end``
|
||||||
The text added after each line. Either ``u' '`` or ``u'<br />``. This
|
The text added after each line. Either ``u' '`` or ``u'<br />``.
|
||||||
is needed for bibles.
|
This is needed for bibles.
|
||||||
"""
|
"""
|
||||||
log.debug(u'_paginate_slide_words - Start')
|
log.debug(u'_paginate_slide_words - Start')
|
||||||
formatted = []
|
formatted = []
|
||||||
|
Loading…
Reference in New Issue
Block a user