Sfoglia il codice sorgente

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

tags/v0.2
Ben Kurtovic 12 anni fa
parent
commit
357e421fe8
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. +3
    -0
      mwparserfromhell/nodes/text.py

+ 3
- 0
mwparserfromhell/nodes/text.py Vedi File

@@ -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."""


Caricamento…
Annulla
Salva