From 1b90b42647b78d7d007712b063f049a137fa1779 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Thu, 9 Oct 2025 19:10:10 -0700 Subject: [PATCH] Html renderer: reset tag so untagged text doesn't inherit last tag --- system/ui/widgets/html_render.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/system/ui/widgets/html_render.py b/system/ui/widgets/html_render.py index 2c3eeb3793..8d713ee7ea 100644 --- a/system/ui/widgets/html_render.py +++ b/system/ui/widgets/html_render.py @@ -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: