Html renderer: reset tag so untagged text doesn't inherit last tag

This commit is contained in:
Shane Smiskol
2025-10-09 19:10:10 -07:00
parent de805e4af7
commit 1b90b42647
+2 -1
View File
@@ -127,9 +127,10 @@ class HtmlRenderer(Widget):
# Always add content regardless of opening or closing tag
close_tag()
# TODO: reset to None if end tag?
if is_start_tag:
current_tag = tag
else:
current_tag = None
# increment after we add the content for the current tag
if tag == ElementType.UL: