From 920a65b4e1ee899595df7e953e99a5dcf53f0cb2 Mon Sep 17 00:00:00 2001 From: Andreas Preikschat Date: Tue, 20 Sep 2011 17:50:43 +0200 Subject: [PATCH] fix detection when tag exists more than once --- openlp/core/lib/renderer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openlp/core/lib/renderer.py b/openlp/core/lib/renderer.py index 68ca7f1a9..abfd658ba 100644 --- a/openlp/core/lib/renderer.py +++ b/openlp/core/lib/renderer.py @@ -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']))