diff --git a/scripts/generate_test_epub.py b/scripts/generate_test_epub.py index 9b714512..76c199a5 100644 --- a/scripts/generate_test_epub.py +++ b/scripts/generate_test_epub.py @@ -1014,6 +1014,7 @@ def main():
  • pre element: intrinsic line breaks preserved
  • pre element: leading/trailing blank lines
  • pre with inline code element
  • +
  • horizontal rules between paragraphs
  • superscript and subscript rendering
  • """, @@ -1067,7 +1068,30 @@ greet("World"); [], ), ( - "4. Superscript and Subscript", + "4. Horizontal Rules", + make_chapter( + "Horizontal Rule Tests", + """ +

    A plain <hr> between two paragraphs. A thin line should appear between the two blocks of text.

    +

    Paragraph before the first rule. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

    +
    +

    Paragraph after the first rule. The rule above should be a full-width horizontal line.

    +
    +

    Second rule above. Two rules in a row with no text between them:

    +
    +
    +

    Two rules appeared above. Now a rule right after the heading:

    +
    +

    Rule appeared right after the paragraph above. Finally, a rule near the end of the page to verify it does not cause a spurious page break when there is still room:

    +

    Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

    +
    +

    End of horizontal rule tests.

    +""", + ), + [], + ), + ( + "5. Superscript and Subscript", make_chapter( "Superscript and Subscript", """ diff --git a/test/epubs/test_jpeg_images.epub b/test/epubs/test_jpeg_images.epub index c2142b7c..f7e523f9 100644 Binary files a/test/epubs/test_jpeg_images.epub and b/test/epubs/test_jpeg_images.epub differ diff --git a/test/epubs/test_mixed_images.epub b/test/epubs/test_mixed_images.epub index 6d0a41f1..16b17116 100644 Binary files a/test/epubs/test_mixed_images.epub and b/test/epubs/test_mixed_images.epub differ diff --git a/test/epubs/test_png_images.epub b/test/epubs/test_png_images.epub index 5a405f88..8bd0ebdf 100644 Binary files a/test/epubs/test_png_images.epub and b/test/epubs/test_png_images.epub differ diff --git a/test/epubs/test_text_rendering.epub b/test/epubs/test_text_rendering.epub index 2067f55c..a7bce7cc 100644 Binary files a/test/epubs/test_text_rendering.epub and b/test/epubs/test_text_rendering.epub differ