git » alan.git » commit 0a03bf0

Force section page breaks including start

author Alan Dipert
2025-12-04 05:08:53 UTC
committer Alan Dipert
2025-12-04 05:08:53 UTC
parent 4bf3accce035ade6e9100c16c1177bcdbccc7d09

Force section page breaks including start

render_text.py +2 -3

diff --git a/render_text.py b/render_text.py
index 30bc366..2f73e7d 100644
--- a/render_text.py
+++ b/render_text.py
@@ -21,7 +21,7 @@ def parse_args() -> argparse.Namespace:
 
 
 def render_booklet(data: Dict[str, Any]) -> str:
-    lines = ["# Alan's Language Aptitude iNstrument (ALAN)", ""]
+    lines = ["# Alan's Language Aptitude iNstrument (ALAN)", "\\newpage", ""]
     meta = data.get("meta", {})
     if meta.get("instructions"):
         lines.append(meta["instructions"])
@@ -45,8 +45,7 @@ def render_booklet(data: Dict[str, Any]) -> str:
         lines.append("")
 
     for sec_idx, section in enumerate(data.get("sections", [])):
-        if sec_idx > 0:
-            lines.append("\\newpage")
+        lines.append("\\newpage")
         lines.append(f"## Section {section['id']}")
         for intro in section.get("intro_text", []):
             lines.append(intro)