From 08f47c4a491878ef0ad958329cdb8098c0ce49aa Mon Sep 17 00:00:00 2001 From: Andreas Preikschat Date: Wed, 3 Jul 2013 19:10:37 +0200 Subject: [PATCH] fixed str.decode --- openlp/core/lib/formattingtags.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/openlp/core/lib/formattingtags.py b/openlp/core/lib/formattingtags.py index 1984b08ba..78ad31fae 100644 --- a/openlp/core/lib/formattingtags.py +++ b/openlp/core/lib/formattingtags.py @@ -156,15 +156,10 @@ class FormattingTags(object): u'end html': u'', u'protected': True, u'temporary': False}) FormattingTags.add_html_tags(base_tags) FormattingTags.add_html_tags(temporary_tags) - # Formatting Tags were also known as display tags. user_expands_string = str(Settings().value(u'formattingTags/html_tags')) + # If we have some user ones added them as well if user_expands_string: user_tags = json.loads(user_expands_string) - for tag in user_tags: - for element in tag: - if isinstance(tag[element], str): - tag[element] = tag[element].decode('utf8') - # If we have some user ones added them as well FormattingTags.add_html_tags(user_tags) @staticmethod