Commit 238e0ba4 authored by Guido van Rossum's avatar Guido van Rossum

Add a DefaultHandler which passes all text for which we have no

explicit handler on untranslated.

As long as there's a DOCTYPE declaration (*any* doctype declaration),
entity references are passed to this handler as well.
parent 77045bcb
......@@ -310,6 +310,9 @@ class TALParser(XMLParser):
def CharacterDataHandler(self, text):
self.gen.emitText(text)
def DefaultHandler(self, text):
self.gen.emit("rawtext", text)
def test():
import sys
p = TALParser()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment