(preface: list[str], blocks: list[dict])
| 110 | |
| 111 | |
| 112 | def join_changelog(preface: list[str], blocks: list[dict]) -> str: |
| 113 | parts = ["\n".join(preface)] |
| 114 | for b in blocks: |
| 115 | parts.append("\n".join([b["header"], *b["body"]])) |
| 116 | return "\n".join(parts) |
| 117 | |
| 118 | |
| 119 | def split_subsections(body: list[str]): |