mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-15 15:22:54 +00:00
Two holes in alignment_frame: - A column's right edge came from the runs that start at its left edge, so a row of several styles ended at its first run, and the column could fail to hold a title wider than that run. It now takes the right edge of each complete row (row_rect). - A row with no column to align in was framed by its own box, which the rewrite also used as the width its text wraps at: changing an isolated row's text together with an alignment wrapped it at its old width, word by word. When the text changes and no column holds the row, alignment_frame now returns None, so the row keeps the width it has without the alignment. With the text unchanged the own box is still the frame, so aligning twice is still a no-op.