Browse Source

Properly handle the first space after a tag name.

tags/v0.3
Ben Kurtovic 11 years ago
parent
commit
90ef3206f3
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      mwparserfromhell/parser/tokenizer.c

+ 3
- 1
mwparserfromhell/parser/tokenizer.c View File

@@ -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);


Loading…
Cancel
Save