@@ -1,6 +1,8 @@ | |||||
v0.6 (unreleased): | v0.6 (unreleased): | ||||
- Dropped support for end-of-life Python versions 2.6, 3.2, 3.3. (#199, #204) | - Dropped support for end-of-life Python versions 2.6, 3.2, 3.3. (#199, #204) | ||||
- Fixed signals getting stuck inside the C tokenizer until parsing finishes, | |||||
in pathological cases. (#206) | |||||
- Fixed <wbr> not being considered a single-only tag. (#200) | - Fixed <wbr> not being considered a single-only tag. (#200) | ||||
v0.5.1 (released March 3, 2018): | v0.5.1 (released March 3, 2018): | ||||
@@ -10,6 +10,9 @@ Unreleased | |||||
- Dropped support for end-of-life Python versions 2.6, 3.2, 3.3. | - Dropped support for end-of-life Python versions 2.6, 3.2, 3.3. | ||||
(`#199 <https://github.com/earwig/mwparserfromhell/issues/199>`, | (`#199 <https://github.com/earwig/mwparserfromhell/issues/199>`, | ||||
`#204 <https://github.com/earwig/mwparserfromhell/pull/204>`) | `#204 <https://github.com/earwig/mwparserfromhell/pull/204>`) | ||||
- Fixed signals getting stuck inside the C tokenizer until parsing finishes, | |||||
in pathological cases. | |||||
(`#206 <https://github.com/earwig/mwparserfromhell/issues/206>`) | |||||
- Fixed `<wbr>` not being considered a single-only tag. | - Fixed `<wbr>` not being considered a single-only tag. | ||||
(`#200 <https://github.com/earwig/mwparserfromhell/pull/200>`) | (`#200 <https://github.com/earwig/mwparserfromhell/pull/200>`) | ||||
@@ -2603,6 +2603,8 @@ PyObject* Tokenizer_parse(Tokenizer* self, uint64_t context, int push) | |||||
} | } | ||||
if (!this) | if (!this) | ||||
return Tokenizer_handle_end(self, this_context); | return Tokenizer_handle_end(self, this_context); | ||||
if (PyErr_CheckSignals()) | |||||
return NULL; | |||||
next = Tokenizer_read(self, 1); | next = Tokenizer_read(self, 1); | ||||
last = Tokenizer_read_backwards(self, 1); | last = Tokenizer_read_backwards(self, 1); | ||||
if (this == next && next == '{') { | if (this == next && next == '{') { | ||||