[Zpt] CVS: Packages/TAL - HTMLTALParser.py:1.2
fred@digiciool.com
fred@digiciool.com
Wed, 14 Mar 2001 11:01:53 -0500 (EST)
Update of /cvs-repository/Packages/TAL
In directory korak:/tmp/cvs-serv5183
Modified Files:
HTMLTALParser.py
Log Message:
Call the proper .emitText() / .emitRawText() methods instead of just
calling .emit(); this ensures the right quoting is done and adjacent
instructions are collapsed when possible.
--- Updated File HTMLTALParser.py in package Packages/TAL --
--- HTMLTALParser.py 2001/03/14 13:15:12 1.1
+++ HTMLTALParser.py 2001/03/14 16:01:53 1.2
@@ -90,16 +90,16 @@
self.gen.emitEndTag(tag)
def handle_charref(self, name):
- self.gen.emit("rawtext", "&#%s;" % name)
+ self.gen.emitRawText("&#%s;" % name)
def handle_entityref(self, name):
- self.gen.emit("rawtext", "&%s;" % name)
+ self.gen.emitRawText("&%s;" % name)
def handle_data(self, data):
- self.gen.emit("text", data)
+ self.gen.emitText(data)
def handle_comment(self, data):
- self.gen.emit("rawtext", "<!--%s-->" % data)
+ self.gen.emitRawText("<!--%s-->" % data)
def handle_pi(self, data):
- self.gen.emit("rawtext", "<?%s>" % data)
+ self.gen.emitRawText("<?%s>" % data)