[XML-SIG] minor BUG and Patch for "html_builder"

Dieter Maurer dieter@handshake.de
Sun, 31 Jan 1999 17:48:41 +0100

This is a multi-part MIME message.
Content-Type: text/plain; charset=iso-8859-1

"HtmlBuilder" (from the xml-0.5 distribution) goes into an
infinite loop when it encounters an empty tag explicitely
closed, e.g.:

  <LINK HREF="style.css" REL="stylesheet" TYPE="text/css"></LINK>

"HtmlWriter" generates such constructs.

A patch is appended.


Content-Type: application/x-patch; name="html_builder.pat"

--- :html_builder.py	Tue Dec 29 10:45:25 1998
+++ html_builder.py	Sun Jan 31 16:22:35 1999
@@ -72,7 +72,7 @@
 		while self.stack:
 			if tag in self.empties:
-				continue
+				break
 			start_tag = self.stack[-1]
 			del self.stack[-1]
 			Builder.endElement(self, start_tag)