[ZPT] CVS: Packages/TAL - TALInterpreter.py:1.34
guido@digicool.com
guido@digicool.com
Mon, 9 Apr 2001 18:51:35 -0400 (EDT)
Update of /cvs-repository/Packages/TAL
In directory korak:/tmp/cvs-serv32467
Modified Files:
TALInterpreter.py
Log Message:
Now that self.html is set and cleared by do_mode(), also set
self.endsep to the proper value there.
--- Updated File TALInterpreter.py in package Packages/TAL --
--- TALInterpreter.py 2001/04/09 15:27:29 1.33
+++ TALInterpreter.py 2001/04/09 22:51:34 1.34
@@ -167,6 +167,7 @@
self.showtal = showtal
self.strictinsert = strictinsert
self.html = 0
+ self.endsep = "/>"
self.slots = {}
self.currentMacro = None
self.position = None, None # (lineno, offset)
@@ -192,10 +193,6 @@
def __call__(self):
assert self.level == 0
assert self.scopeLevel == 0
- if self.html:
- self.endsep = " />"
- else:
- self.endsep = "/>"
self.interpret(self.program)
assert self.level == 0
assert self.scopeLevel == 0
@@ -233,6 +230,10 @@
def do_mode(self, mode):
assert mode in ("html", "xml")
self.html = (mode == "html")
+ if self.html:
+ self.endsep = " />"
+ else:
+ self.endsep = "/>"
def do_setPosition(self, position):
self.position = position