瀏覽代碼

Fix an assumption regarding templates mistaken as arguments.

tags/v0.1
Ben Kurtovic 12 年之前
父節點
當前提交
814ce9f290
共有 1 個文件被更改,包括 2 次插入5 次删除
  1. +2
    -5
      mwparserfromhell/parser/tokenizer.py

+ 2
- 5
mwparserfromhell/parser/tokenizer.py 查看文件

@@ -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…
取消
儲存