Explorar el Código

Text nodes should now appear a bit better in tree form.

tags/v0.2
Ben Kurtovic hace 11 años
padre
commit
357e421fe8
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. +3
    -0
      mwparserfromhell/nodes/text.py

+ 3
- 0
mwparserfromhell/nodes/text.py Ver fichero

@@ -39,6 +39,9 @@ class Text(Node):
def __strip__(self, normalize, collapse):
return self

def __showtree__(self, write, get, mark):
write(str(self).encode("unicode_escape").decode("utf8"))

@property
def value(self):
"""The actual text itself."""


Cargando…
Cancelar
Guardar