From 41339034607482ccfda1d5b08cc81aa52e8cd61a Mon Sep 17 00:00:00 2001 From: zenfyr Date: Wed, 06 May 2026 20:41:41 +0000 Subject: [PATCH] fix: stupid bad no good depth logic --- util/html.py | 4 ++-- 1 file(s) changed, 2 insertion(s)(+), 2 deletion(s)(-) diff --git a/util/html.py b/util/html.py --- a/util/html.py +++ b/util/html.py @@ -83,10 +83,10 @@ @override def handle_endtag(self, tag: str) -> None: if self.invisible: if tag == self.invisible: - if self.invisible_depth == 0: + if self.invisible_depth <= 0: self.invisible = None else: - self.invisible_depth = -1 + self.invisible_depth -= 1 return match tag: -- tangled.sh