diff -r 9986ec0e559a -r 10516539f238 E5XML/TemplatesWriter.py --- a/E5XML/TemplatesWriter.py Tue Oct 15 22:03:54 2013 +0200 +++ b/E5XML/TemplatesWriter.py Fri Oct 18 23:00:41 2013 +0200 @@ -24,7 +24,8 @@ Constructor @param device reference to the I/O device to write to (QIODevice) - @param templatesViewer reference to the templates viewer object (TemplateViewer) + @param templatesViewer reference to the templates viewer object + (TemplateViewer) """ XMLStreamWriterBase.__init__(self, device) @@ -41,7 +42,8 @@ # add some generation comments self.writeComment(" eric5 templates file ") - self.writeComment(" Saved: {0} ".format(time.strftime('%Y-%m-%d, %H:%M:%S'))) + self.writeComment( + " Saved: {0} ".format(time.strftime('%Y-%m-%d, %H:%M:%S'))) # add the main tag self.writeStartElement("Templates") @@ -58,8 +60,10 @@ for template in templates: self.writeStartElement("Template") self.writeAttribute("name", template.getName()) - self.writeTextElement("TemplateDescription", template.getDescription()) - self.writeTextElement("TemplateText", template.getTemplateText()) + self.writeTextElement( + "TemplateDescription", template.getDescription()) + self.writeTextElement( + "TemplateText", template.getTemplateText()) self.writeEndElement() self.writeEndElement()