We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97d4aed commit 12c0bacCopy full SHA for 12c0bac
1 file changed
tokenizer.py
@@ -271,11 +271,10 @@ def consumeNumberEntity(self, isHex):
271
272
def consumeEntity(self):
273
char = None
274
- charStack = []
275
- charStack.append(self.consumeChar())
+ charStack = [self.consumeChar()]
276
if charStack[0] == u"#":
277
278
+ # We might have a number entity here.
+ charStack.extend([self.consumeChar(), self.consumeChar()])
279
if EOF in charStack:
280
# If we reach the end of the file put everything up to EOF
281
# back in the queue
0 commit comments