From 22267f038a23a9a60c76d1f2baee1e18130468cf Mon Sep 17 00:00:00 2001 From: jpirnay Date: Mon, 6 Apr 2026 12:06:21 +0200 Subject: [PATCH] Updated testscripts --- scripts/generate_test_epub.py | 84 ++++++++---------------- test/epubs/test_jpeg_images.epub | Bin 306366 -> 306366 bytes test/epubs/test_layout_regressions.epub | Bin 27889 -> 27331 bytes test/epubs/test_mixed_images.epub | Bin 52031 -> 52078 bytes test/epubs/test_png_images.epub | Bin 100786 -> 100985 bytes test/epubs/test_text_rendering.epub | Bin 2886 -> 2886 bytes 6 files changed, 26 insertions(+), 58 deletions(-) diff --git a/scripts/generate_test_epub.py b/scripts/generate_test_epub.py index 39d2dad3..6f8594d8 100644 --- a/scripts/generate_test_epub.py +++ b/scripts/generate_test_epub.py @@ -1007,37 +1007,6 @@ def main(): ) print("Creating layout regression test EPUB...") - layout_css = """ - -""" layout_chapters = [ ( @@ -1046,7 +1015,8 @@ p { margin-top: 0.7em; margin-bottom: 0.7em; } "Layout Regression Tests", """

This EPUB exercises recent parser edge cases around nested block styles and image wrappers.

-

Recommended settings: Embedded Style ON, Paragraph Alignment set to Book Style or Justify.

+

Recommended settings: Paragraph Alignment set to Book Style or Justify.

+

This regression EPUB uses inline style attributes rather than a head <style> block so it works even if chapter-local embedded CSS is not loaded.