mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-02 06:28:49 -06:00
Format text's alignment always re-aligned the whole paragraph or added text box, and clicking it closed an added text box, losing the selection, so one line couldn't be aligned. With text selected, alignment now applies to the lines (text between line breaks) the selection touches; with only the caret, to the whole box as before. - Added text stores each line's alignment in its /PCAdded parameters (/Aligns, null where a line follows /Align). A justified line's last row is not stretched. - An edited paragraph sends its rows' alignments with each rewrite while it is open (BlockStyle::aligns), in both the single-style and the styled-region rewrite. - Both editors draw each line by its own alignment, and the alignment buttons show the selected line's. An added text box stays open while Format text is used, its style applied at once; clicks are judged by where they were pressed, so a touch or pen tap on the panel doesn't close either editor. - Automation: `aligns` on page_add_text, content_update and text_edit.