diff --git a/src/PluginUtils/_Options.py b/src/PluginUtils/_Options.py index fb74f6cc3..bafbf08f8 100644 --- a/src/PluginUtils/_Options.py +++ b/src/PluginUtils/_Options.py @@ -39,10 +39,10 @@ import os #------------------------------------------------------------------------- try: from xml.sax import make_parser, handler,SAXParseException - from xml.sax.saxutils import escape + from xml.sax.saxutils import quoteattr except: from _xmlplus.sax import make_parser, handler,SAXParseException - from _xmlplus.sax.saxutils import escape + from _xmlplus.sax.saxutils import quoteattr #------------------------------------------------------------------------- # @@ -196,22 +196,22 @@ class OptionListCollection: for module_name in self.get_module_names(): option_list = self.get_option_list(module_name) - f.write('\n' % escape(module_name)) + f.write('\n' % quoteattr(module_name)) options = option_list.get_options() for option_name in options.keys(): if type(options[option_name]) in (type(list()),type(tuple())): - f.write(' \n') else: - f.write('