This website works better with JavaScript.
首頁
說明
登入
ben
/
mwparserfromhell
镜像来自
https://github.com/earwig/mwparserfromhell
關註
1
收藏
1
複製
0
程式碼
版本發佈
24
Activity
瀏覽代碼
Fix an assumption regarding templates mistaken as arguments.
tags/v0.1
Ben Kurtovic
12 年之前
父節點
70cf46ef0d
當前提交
814ce9f290
共有
1 個文件被更改
,包括
2 次插入
和
5 次删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
Write
Preview
Loading…
取消
儲存