From 90ef3206f3b547867e0044bf4ebc7609a2bbab7b Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Tue, 23 Jul 2013 17:40:09 -0400 Subject: [PATCH] Properly handle the first space after a tag name. --- mwparserfromhell/parser/tokenizer.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mwparserfromhell/parser/tokenizer.c b/mwparserfromhell/parser/tokenizer.c index b8d2ad1..36a97b0 100644 --- a/mwparserfromhell/parser/tokenizer.c +++ b/mwparserfromhell/parser/tokenizer.c @@ -1476,8 +1476,10 @@ Tokenizer_handle_tag_data(Tokenizer* self, TagData* data, Py_UNICODE chunk) } else if (first_time) data->context |= TAG_NOTE_SPACE; - else if (Py_UNICODE_ISSPACE(chunk)) + else if (Py_UNICODE_ISSPACE(chunk)) { data->context = TAG_ATTR_READY; + return Tokenizer_handle_tag_space(self, data, chunk); + } } else if (Py_UNICODE_ISSPACE(chunk)) return Tokenizer_handle_tag_space(self, data, chunk);