]> granicus.if.org Git - python/commitdiff
Only reset _is_empty if needed.
authorFred Drake <fdrake@acm.org>
Wed, 16 Oct 2002 16:02:08 +0000 (16:02 +0000)
committerFred Drake <fdrake@acm.org>
Wed, 16 Oct 2002 16:02:08 +0000 (16:02 +0000)
Doc/tools/sgmlconv/esistools.py

index 6c7c0ae200e7e69ca99375fa7f4f9bcc53ca849f..b9c029b08daf3c32fcb905eda3858c184c06399c 100644 (file)
@@ -166,10 +166,10 @@ class ESISReader(xml.sax.xmlreader.XMLReader):
         elif token == '(':
             if self._is_empty:
                 self._empties[data] = 1
+                self._is_empty = 0
             if handler:
                 handler.startElement(data, self._attributes)
             self._attrs.clear()
-            self._is_empty = 0
         elif token == 'A':
             name, value = data.split(' ', 1)
             if value != "IMPLIED":