| author | Alan Dipert
<alan@dipert.org> 2025-12-04 05:09:30 UTC |
| committer | Alan Dipert
<alan@dipert.org> 2025-12-04 05:09:30 UTC |
| parent | 0a03bf0c9841782d0d0d6a62db7c7745cef38e72 |
| render_text.py | +2 | -2 |
diff --git a/render_text.py b/render_text.py index 2f73e7d..8b24153 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)", "\\newpage", ""] + lines = ["# Alan's Language Aptitude iNstrument (ALAN)", ""] meta = data.get("meta", {}) if meta.get("instructions"): lines.append(meta["instructions"]) @@ -45,7 +45,7 @@ def render_booklet(data: Dict[str, Any]) -> str: lines.append("") for sec_idx, section in enumerate(data.get("sections", [])): - lines.append("\\newpage") + lines.append("<div style=\"page-break-after: always;\"></div>") lines.append(f"## Section {section['id']}") for intro in section.get("intro_text", []): lines.append(intro)