Sheet: large portrait slot, writable notes in summary and lobby
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HJhXuLD2Z6hv3Wqeq9UL9K
This commit is contained in:
@@ -99,7 +99,7 @@ def to_docx(ch: dict, rules: dict) -> bytes:
|
||||
p = doc.add_paragraph()
|
||||
p.add_run("Other: ").bold = True
|
||||
p.add_run(s["other"])
|
||||
for key, head in (("background", "Background"), ("notes", "Notes")):
|
||||
for key, head in (("background", "Background"), ("conditions", "Conditions"), ("notes", "Notes")):
|
||||
if ch.get(key):
|
||||
doc.add_heading(head, 1)
|
||||
doc.add_paragraph(ch[key])
|
||||
@@ -171,7 +171,7 @@ def to_pdf(ch: dict, rules: dict) -> bytes:
|
||||
el.append(Paragraph("-", body))
|
||||
if s["other"]:
|
||||
el.append(Paragraph(f"<b>Other:</b> {esc(s['other'])}", body))
|
||||
for key, head in (("background", "Background"), ("notes", "Notes")):
|
||||
for key, head in (("background", "Background"), ("conditions", "Conditions"), ("notes", "Notes")):
|
||||
if ch.get(key):
|
||||
el += [Paragraph(head, h2), Paragraph(esc(ch[key]), body)]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user