Commits

Mathias Panzenböck  committed 9fa3af9

bugfix

  • Participants
  • Parent commits 5304572

Comments (0)

Files changed (3)

File XmlMarkup.py

 		n = self.__nbuf + len(data)
 		if n > self.__maxbuf:
 			self.__write(''.join(self.__buf))
-			self.__buf.clear()
+			del self.__buf[:]
 			self.__nbuf = 0
 		else:
 			self.__nbuf = n
 		self.__maxbuf = maxbuf
 
 		def comment(data):
-			gen.comment(data.replace('-->','-- >'))
+			gen.comment(data.replace('--','__'))
 		
 		self.comment = FakeFile(self, encoding, noop,           noop,         comment,        maxbuf)
 		self.cdata   = FakeFile(self, encoding, gen.startCDATA, gen.endCDATA, gen.characters, maxbuf)

File demo.py

File contents unchanged.

File oldXmlMarkup.py

File contents unchanged.