forked from openlp/openlp
fixed formatting tags
This commit is contained in:
parent
4cb4a8f261
commit
b48fbd40a3
@ -62,9 +62,6 @@ class FormattingTags(object):
|
|||||||
# Remove key 'temporary' from tags. It is not needed to be saved.
|
# Remove key 'temporary' from tags. It is not needed to be saved.
|
||||||
if u'temporary' in tag:
|
if u'temporary' in tag:
|
||||||
del tag[u'temporary']
|
del tag[u'temporary']
|
||||||
for element in tag:
|
|
||||||
if isinstance(tag[element], unicode):
|
|
||||||
tag[element] = tag[element].encode('utf8')
|
|
||||||
# Formatting Tags were also known as display tags.
|
# Formatting Tags were also known as display tags.
|
||||||
Settings().setValue(u'formattingTags/html_tags', json.dumps(tags) if tags else u'')
|
Settings().setValue(u'formattingTags/html_tags', json.dumps(tags) if tags else u'')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user