mirror of
https://github.com/storytold/wordcraft.git
synced 2026-11-08 03:32:19 +00:00
* ODT gap 19: a heading's text of another size keeps it Every run in a heading, title or code paragraph lost its size to the style, so a smaller word in a heading came back at the heading's size in LibreOffice after a save. Only text at the style's size goes with the style. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ODT: a heading's text is sized against the heading (gap 19) The comparison used the size outside the paragraph, so text stating the heading's own size kept it through a style change. A size in percent was of 12 pt, not the heading's. Found by CodeRabbit on this PR. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ODT: text in a heading style stating no size keeps its own (gap 19) The run's size was compared with Standard's, so with Standard at 14 pt a 14 pt run lost its size and took WordCraft's Heading 1 size of 20 pt. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ODT: a span stating no size has none in a heading stating none (gap 19) The size used to work out a percent stayed on a span saying nothing of size, so a bold word in such a heading took Standard's size. It came in with the last commit here. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ODT: a percent in a parentless heading is of the default size (gap 19) It was of Standard's, which a style with no parent isn't based on: 50% over a 10 pt default and a 14 pt Standard came out 7 pt, not 5. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ODT: a style's percent size is of what is under it (gap 19) It was of 12 pt, whatever the parent or default: 50% over a 10 pt default made a 6 pt style, and a 5 pt span in it lost its size and showed at 6. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>