mirror of
https://github.com/storytold/designcraft.git
synced 2026-10-29 04:36:47 -06:00
#171's style.character.delete (and the style.paragraph.delete it copies) reassigned only text runs; next's rename_style already rewrites styles, stories, table cells, nested and GREP styles and footnotes. Both deletes now go through one delete_style that removes the style, rebases its children and calls rename_style, in one undo step. - Children of the deleted style are based on the replacement ([None] and [No Paragraph Style] clear Based On); when the replacement descends from the deleted style they take its parent, so no based-on chain loops. - rename_style also covers drop cap styles, cell styles' paragraph style, footnote and endnote paragraph styles, the endnote heading style, TOC entries and the default paragraph and character styles, which fixes renames too. - A missing, empty, unknown or built-in name, an unknown replacement and a replacement equal to the deleted style are errors that change nothing.