From 5ea69f30ee317304de763b3cac9ae190108b48c9 Mon Sep 17 00:00:00 2001 From: Nigel Date: Fri, 31 Jul 2026 12:11:14 +0100 Subject: [PATCH] Don't add `
` tags Latest advice is that they are not needed. Fixes issue #1912 Reverts change made in PR #1859 --- src/guiguts/data/html/html_header.txt | 1 - src/guiguts/html_convert.py | 2 +- tests/expected/htmlconvert1.txt | 2 -- tests/expected/htmlconvert2.txt | 2 -- 4 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/guiguts/data/html/html_header.txt b/src/guiguts/data/html/html_header.txt index c2eccd44..f94bdae4 100644 --- a/src/guiguts/data/html/html_header.txt +++ b/src/guiguts/data/html/html_header.txt @@ -251,4 +251,3 @@ img.w100 {width: 100%;} -
diff --git a/src/guiguts/html_convert.py b/src/guiguts/html_convert.py index d762f15c..97e1dde3 100644 --- a/src/guiguts/html_convert.py +++ b/src/guiguts/html_convert.py @@ -1153,7 +1153,7 @@ def insert_header_footer() -> None: if user_header: maintext().insert(end_of_css(), f"{user_header}\n") # Insert footer - maintext().insert(tk.END, "\n
\n\n\n") + maintext().insert(tk.END, "\n\n\n") # Restore mark gravity if changed above for page_mark in page_mark_list: maintext().mark_gravity(page_mark, tk.LEFT) diff --git a/tests/expected/htmlconvert1.txt b/tests/expected/htmlconvert1.txt index a0b4ccb4..9e67ff03 100644 --- a/tests/expected/htmlconvert1.txt +++ b/tests/expected/htmlconvert1.txt @@ -251,7 +251,6 @@ img.w100 {width: 100%;} -
@@ -1682,6 +1681,5 @@ SHEETS

]

-
diff --git a/tests/expected/htmlconvert2.txt b/tests/expected/htmlconvert2.txt index 11a5d641..8f01cce3 100644 --- a/tests/expected/htmlconvert2.txt +++ b/tests/expected/htmlconvert2.txt @@ -251,7 +251,6 @@ img.w100 {width: 100%;} -

@@ -5399,6 +5398,5 @@ of this eBook that support hyperlinks, the page references in the List of Illustrations lead to the corresponding illustrations.

-