force closing html title elements

This commit is contained in:
Ploum 2023-10-07 23:45:01 +02:00
parent f6cb7723e1
commit d50bc5a8e2
2 changed files with 2 additions and 0 deletions

View File

@ -12,6 +12,7 @@ Changes since beta1
- fixes opening mailto links
- fixes existing non-html ressources marked a to_fetch even when not needed (simple and/or confusion)
- fixes a crash with RSSfeeds without <link> element
- fixes a bug in HTML renderer where some hX element were not closed properly
- attempt at hiding XMLparsedAsHTMLWarning from BS4 library
- chafa now used by default everywhere if version > 1.10
- ignoring encoding error in ansicat

View File

@ -1080,6 +1080,7 @@ class HtmlRenderer(AbstractRenderer):
recursive_render(child)
r.newparagraph()
r.close_all()
r.close_all()
elif element.name in ["code","tt"]:
for child in element.children:
recursive_render(child,indent=indent,preformatted=True)