Browse Source

Fix an assumption regarding templates mistaken as arguments.

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

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

@@ -167,16 +167,13 @@ class Tokenizer(object):
break
try:
self._parse_argument()
braces -= 3
except BadRoute:
try:
self._parse_template()
braces -= 2
except BadRoute:
return self._write_text_then_stack("{" * braces)
stack = self._pop()
self._write_text("{")
self._push()
self._write_all(stack)
braces -= 3
if braces:
self._head += 1



Loading…
Cancel
Save