E5XML/XMLStreamWriterBase.py

changeset 605
9c7527ecbf6e
parent 573
3fd49348ea83
child 610
3a625b0793d8
--- a/E5XML/XMLStreamWriterBase.py	Sun Sep 12 19:44:54 2010 +0200
+++ b/E5XML/XMLStreamWriterBase.py	Mon Sep 13 08:32:36 2010 +0200
@@ -40,9 +40,6 @@
             frozenset  : self._write_frozenset, 
         }
         
-        self.NEWPARA = chr(0x2029)
-        self.NEWLINE = chr(0x2028)
-        
         self.setAutoFormatting(True)
         self.setAutoFormattingIndent(2)
     
@@ -53,14 +50,6 @@
         # write the XML header
         self.writeStartDocument()
     
-    def encodedNewLines(self, text):
-        """
-        Public method to encode newlines and paragraph breaks.
-        
-        @param text text to encode (string)
-        """
-        return text.replace("\n\n", self.NEWPARA).replace("\n", self.NEWLINE)
-    
     def _writeBasics(self, pyobject):
         """
         Protected method to dump an object of a basic Python type.

eric ide

mercurial