diff --git a/openlp/core/lib/themexmlhandler.py b/openlp/core/lib/themexmlhandler.py index b2850d6ec..779dc3507 100644 --- a/openlp/core/lib/themexmlhandler.py +++ b/openlp/core/lib/themexmlhandler.py @@ -339,7 +339,8 @@ class ThemeXML(object): """ Pull out the XML string formatted for human consumption """ - return self.theme_xml.toprettyxml(indent=u' ', newl=u'\n', encoding=u'utf-8') + return self.theme_xml.toprettyxml(indent=u' ', newl=u'\n', + encoding=u'utf-8') def parse(self, xml): """ @@ -364,7 +365,8 @@ class ThemeXML(object): ``xml`` The XML string to parse. """ - theme_xml = ElementTree(element=XML(xml.encode(u'ascii', u'xmlcharrefreplace'))) + theme_xml = ElementTree(element=XML(xml.encode(u'ascii', + u'xmlcharrefreplace'))) xml_iter = theme_xml.getiterator() master = u'' for element in xml_iter: diff --git a/openlp/core/theme/theme.py b/openlp/core/theme/theme.py index b75b55a2e..2ea13d01b 100644 --- a/openlp/core/theme/theme.py +++ b/openlp/core/theme/theme.py @@ -175,7 +175,8 @@ class Theme(object): ``xml`` The data to apply to the theme """ - root = ElementTree(element=XML(xml.encode(u'ascii', u'xmlcharrefreplace'))) + root = ElementTree(element=XML(xml.encode(u'ascii', + u'xmlcharrefreplace'))) xml_iter = root.getiterator() for element in xml_iter: delphi_color_change = False