From d50bc5a8e2ae351e85c6fe016a52218361d8db9c Mon Sep 17 00:00:00 2001 From: Ploum Date: Sat, 7 Oct 2023 23:45:01 +0200 Subject: [PATCH] force closing html title elements --- CHANGELOG | 1 + ansicat.py | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index 2aec5c4..a649874 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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 RSS feeds without 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 diff --git a/ansicat.py b/ansicat.py index f148000..954200b 100755 --- a/ansicat.py +++ b/ansicat.py @@ -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)