.
This commit is contained in:
parent
dcbf8db706
commit
bec3dca171
1 changed files with 1 additions and 2 deletions
3
test.py
3
test.py
|
|
@ -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}');
|
||||
|
|
|
|||
Loading…
Reference in a new issue