[Zpt] CVS: Packages/TAL - TALParser.py:1.8

fred@digiciool.com fred@digiciool.com
Wed, 14 Mar 2001 11:06:24 -0500 (EST)


Update of /cvs-repository/Packages/TAL
In directory korak:/tmp/cvs-serv5502

Modified Files:
	TALParser.py 
Log Message:

Use .emitRawText() in a couple of places; this helps minimize the
instruction sequence.



--- Updated File TALParser.py in package Packages/TAL --
--- TALParser.py	2001/02/15 15:50:41	1.7
+++ TALParser.py	2001/03/14 16:06:23	1.8
@@ -309,13 +309,13 @@
             self.gen.emitFillSlot(fillSlot)
 
     def CommentHandler(self, text):
-        self.gen.emit("comment", text)
+        self.gen.emitRawText("<!--%s-->" % text)
 
     def CharacterDataHandler(self, text):
         self.gen.emitText(text)
 
     def DefaultHandler(self, text):
-        self.gen.emit("rawtext", text)
+        self.gen.emitRawText(text)
 
 def test():
     import sys