mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-10-27 11:37:59 -06:00
Paragraph numbers are positions in a list regrouped from geometry after every edit, so an edit that merged a paragraph into its neighbour made the next edit by number rewrite another paragraph and lose its text. After text_paragraphs, text_edit and text_edit_layout find the listed paragraph again by its text and box, and refuse one that no longer exists on its own (list the page again). An edit's result names the numbers that are gone in stale_paragraphs. The inline editor's switch-paragraph click holds the same key instead of an index. Without a listing a number is a position, as before. An identity that survives save and reopen is still #2508.