[ZPT] CVS: Packages/TAL - HTMLTALParser.py:1.18
fred@digicool.com
fred@digicool.com
Mon, 19 Mar 2001 17:57:07 -0500 (EST)
Update of /cvs-repository/Packages/TAL
In directory korak:/tmp/cvs-serv19127
Modified Files:
HTMLTALParser.py
Log Message:
finish_starttag(): Make sure we do not close too many levels; this was
possible with some interactions between nested tables.
--- Updated File HTMLTALParser.py in package Packages/TAL --
--- HTMLTALParser.py 2001/03/19 17:18:18 1.17
+++ HTMLTALParser.py 2001/03/19 22:57:07 1.18
@@ -191,7 +191,8 @@
for i in range(len(self.tagstack)):
t = self.tagstack[i]
if t in blocks_to_close:
- close_to = i
+ if close_to == -1:
+ close_to = i
elif t in BLOCK_LEVEL_HTML_TAGS:
close_to = -1
self.close_to_level(close_to)