From 175a7dcf6588f41df1ea99f9180a930d37224598 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Thu, 25 Aug 2005 22:02:43 +0000 Subject: bug [ 1262320 ] minidom.py alternate newl support is broken --- Lib/xml/dom/minidom.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Lib/xml/dom/minidom.py b/Lib/xml/dom/minidom.py index f17578b..4bb4ef4 100644 --- a/Lib/xml/dom/minidom.py +++ b/Lib/xml/dom/minidom.py @@ -1278,15 +1278,15 @@ class DocumentType(Identified, Childless, Node): writer.write("\n") + writer.write(">"+newl) class Entity(Identified, Node): attributes = None @@ -1739,9 +1739,9 @@ class Document(Node, DocumentLS): def writexml(self, writer, indent="", addindent="", newl="", encoding = None): if encoding is None: - writer.write('\n') + writer.write(''+newl) else: - writer.write('\n' % encoding) + writer.write('%s' % (encoding, newl)) for node in self.childNodes: node.writexml(writer, indent, addindent, newl) -- cgit v0.12