forked from openlp/openlp
fix detection when tag exists more than once
This commit is contained in:
parent
240d612948
commit
920a65b4e1
@ -462,8 +462,8 @@ class Renderer(object):
|
||||
for tag in FormattingTags.get_html_tags():
|
||||
if tag[u'start tag'] == u'{br}':
|
||||
continue
|
||||
if tag[u'start tag'] in raw_text and not \
|
||||
tag[u'end tag'] in raw_text:
|
||||
if raw_text.count(tag[u'start tag']) != \
|
||||
raw_text.count(tag[u'end tag']):
|
||||
raw_tags.append(
|
||||
(raw_text.find(tag[u'start tag']), tag[u'start tag'],
|
||||
tag[u'end tag']))
|
||||
|
Loading…
Reference in New Issue
Block a user