This commit is contained in:
Zander Thannhauser 2025-12-07 16:39:32 -06:00
parent dcbf8db706
commit bec3dca171

View file

@ -329,8 +329,7 @@ def do_table_line(state, line):
print(f'depth = {depth}');
elif (m := re.match("</table>", line)):
content += m.group(0);
depth -= 1;
if depth < 0: raise SyntaxError("negative depth; bad HTML");
if depth > 0: depth -= 1;
line = line[len(m.group(0)):]
print(f'line = "{line}"');
print(f'depth = {depth}');