E5XML/TemplatesWriter.py

changeset 2992
dbdf27746da5
parent 2302
f29e9405c851
child 3057
10516539f238
child 3160
209a07d7e401
diff -r 226481ff40d1 -r dbdf27746da5 E5XML/TemplatesWriter.py
--- a/E5XML/TemplatesWriter.py	Sun Oct 06 19:52:33 2013 +0200
+++ b/E5XML/TemplatesWriter.py	Mon Oct 07 19:10:11 2013 +0200
@@ -22,7 +22,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)
         
@@ -39,7 +40,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")
@@ -56,8 +58,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()
         

eric ide

mercurial