Browse Source

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

tags/v0.2
Ben Kurtovic 11 years ago
parent
commit
357e421fe8
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      mwparserfromhell/nodes/text.py

+ 3
- 0
mwparserfromhell/nodes/text.py View 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."""


Loading…
Cancel
Save