This website works better with JavaScript.
Home
Help
Sign In
ben
/
mwparserfromhell
mirror of
https://github.com/earwig/mwparserfromhell
Watch
1
Star
1
Fork
0
Code
Releases
24
Activity
Browse Source
Text nodes should now appear a bit better in tree form.
tags/v0.2
Ben Kurtovic
12 years ago
parent
d6f2723a06
commit
357e421fe8
1 changed files
with
3 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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."""
Write
Preview
Loading…
Cancel
Save