Explorar el Código

contexts.WIKILINK should also fail

tags/v0.2
Ben Kurtovic hace 12 años
padre
commit
b447e7bfc1
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. +2
    -1
      mwparserfromhell/parser/tokenizer.py

+ 2
- 1
mwparserfromhell/parser/tokenizer.py Ver fichero

@@ -434,7 +434,8 @@ class Tokenizer(object):
continue
if this is self.END:
fail = (contexts.TEMPLATE | contexts.ARGUMENT |
contexts.HEADING | contexts.COMMENT)
contexts.WIKILINK | contexts.HEADING |
contexts.COMMENT)
if self._context & contexts.TEMPLATE_PARAM_KEY:
self._pop()
if self._context & fail:


Cargando…
Cancelar
Guardar