mirror of
https://github.com/infiniteCable2/openpilot.git
synced 2026-08-05 16:26:10 +08:00
Html renderer: reset tag so untagged text doesn't inherit last tag
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user