| author | Alan Dipert
<alan@dipert.org> 2025-12-04 05:14:19 UTC |
| committer | Alan Dipert
<alan@dipert.org> 2025-12-04 05:14:19 UTC |
| parent | 400688b325d422d7c2785b37f830bfa092e02512 |
| render_text.py | +2 | -0 |
diff --git a/render_text.py b/render_text.py index 6a362e7..82ab748 100644 --- a/render_text.py +++ b/render_text.py @@ -49,10 +49,12 @@ def render_booklet(data: Dict[str, Any]) -> str: # start each section after a break, but keep the heading with content lines.append("<div style=\"page-break-before: always;\"></div>") lines.append(f"<h2 style=\"page-break-after: avoid;\">Section {sec_idx + 1}</h2>") + lines.append("") for intro in section.get("intro_text", []): lines.append(intro) lines.append("") for q in section.get("questions", []): + lines.append("") lines.append(f"**{q['number']}. {q['stem']}**") for opt in q.get("options", []): lines.append(f"- {opt['label']}) {opt['text']}")