git » alan.git » commit 74044a0

Force page break before each section heading in booklet

author Alan Dipert
2025-12-04 05:12:15 UTC
committer Alan Dipert
2025-12-04 05:12:15 UTC
parent 3ed381e0e86ec471400e6606213f2ad550235cbb

Force page break before each section heading in booklet

render_text.py +1 -1

diff --git a/render_text.py b/render_text.py
index 98e01d9..e5f5954 100644
--- a/render_text.py
+++ b/render_text.py
@@ -46,7 +46,7 @@ def render_booklet(data: Dict[str, Any]) -> str:
 
     for sec_idx, section in enumerate(data.get("sections", [])):
         lines.append("<div style=\"page-break-after: always;\"></div>")
-        lines.append(f"<h2 style=\"page-break-after: avoid;\">Section {sec_idx + 1}</h2>")
+        lines.append(f"<h2 style=\"page-break-after: always;\">Section {sec_idx + 1}</h2>")
         for intro in section.get("intro_text", []):
             lines.append(intro)
             lines.append("")