From bec3dca171885d986251455e29f79d6d35178275 Mon Sep 17 00:00:00 2001 From: Zander Thannhauser Date: Sun, 7 Dec 2025 16:39:32 -0600 Subject: [PATCH] . --- test.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test.py b/test.py index 62550b0..bdb2a6a 100644 --- a/test.py +++ b/test.py @@ -329,8 +329,7 @@ def do_table_line(state, line): print(f'depth = {depth}'); elif (m := re.match("", 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}');