We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd50ab6 commit b5240b2Copy full SHA for b5240b2
1 file changed
src/tokenizer.py
@@ -132,7 +132,7 @@ def consumeNumberEntity(self, isHex):
132
# If the integer is between 127 and 160 (so 128 and bigger and 159 and
133
# smaller) we need to do the "windows trick".
134
if 127 < charAsInt < 160:
135
- charAsInt = entitiesWindows1252[128 - charAsInt]
+ charAsInt = entitiesWindows1252[charAsInt - 128]
136
137
# 0 is not a good number.
138
if charAsInt == 0:
0 commit comments