Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 27c4e09

Browse files
committed
Only reset _is_empty if needed.
1 parent df85f0b commit 27c4e09

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/tools/sgmlconv/esistools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,10 @@ def _handle_token(self, token, data):
166166
elif token == '(':
167167
if self._is_empty:
168168
self._empties[data] = 1
169+
self._is_empty = 0
169170
if handler:
170171
handler.startElement(data, self._attributes)
171172
self._attrs.clear()
172-
self._is_empty = 0
173173
elif token == 'A':
174174
name, value = data.split(' ', 1)
175175
if value != "IMPLIED":

0 commit comments

Comments
 (0)