mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-10-26 03:10:21 +00:00
acacf9485f
page_render's hide_text_block used the paragraph number as a position in the page's current paragraphs, so after an edit regrouped the page it hid a different paragraph from the one text_edit would rewrite. It now resolves the number against the text_paragraphs listing and is refused when the paragraph is gone. text_edit also accepted any overlapping paragraph that contained the requested text as the edited one. When the edit merged the paragraph into a neighbour, the merged paragraph contains that text too, so the number followed it and a second edit by that number dropped the neighbour's text. The edited paragraph must now show exactly the requested text; a merged one leaves the number stale. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>