Browse Source

Bugfix when text ends within param key context.

tags/v0.2
Ben Kurtovic 12 years ago
parent
commit
28a25d9a52
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      mwparserfromhell/parser/tokenizer.py

+ 2
- 0
mwparserfromhell/parser/tokenizer.py View File

@@ -435,6 +435,8 @@ class Tokenizer(object):
if this is self.END:
fail = (contexts.TEMPLATE | contexts.ARGUMENT |
contexts.HEADING | contexts.COMMENT)
if self._context & contexts.TEMPLATE_PARAM_KEY:
self._pop()
if self._context & fail:
self._fail_route()
return self._pop()


Loading…
Cancel
Save