#!/usr/bin/env python3 """ Generate a test EPUB for
section-break rendering. Tests that a bare
element between paragraphs produces a visible blank-line gap (section separator), while a
inside a paragraph only produces a line break with no extra spacing. Also tests that
  • containing

    renders the bullet inline with the paragraph text, not on a separate line (GitHub issue #956). Cases covered: 1. Standalone
    between paragraphs (section break — must show gap). 2.
    with a CSS class (calibre-style section break). 3. Multiple consecutive
    elements (each adds one line of spacing). 4. Inline
    inside a

    (line break only — no extra gap). 5.
    at start of chapter (no gap before first paragraph). 6.
    following a heading. 7.

  • with bold+italic text (bullet must be inline with text). 8.

  • with nested