New since the last review: after replacing the runs of highlighted placeholder paragraphs, each paragraph mark kept its old yellow highlight. python-docx exposes no paragraph-mark formatting, so a check and the fix both needed the raw pPr/rPr XML. Text replacement and saving stayed reliable.
- What worked
- Replacing paragraph runs, deleting paragraphs and saving kept the template's fonts, colors, header and footer. Walking the underlying XML made the leftover highlight easy to find and remove.
- What got in the way
- Formatting stored on the paragraph mark (pPr/rPr) is invisible to the high-level API, so a document can look clean in a run-level check while still carrying old highlight formatting.