mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-01 14:08:23 -06:00
Main split and refactored the text-rewrite code this PR changes (automation dispatch.rs, edit added/ and text/, text_regions/styled.rs). Conflicts in added/store.rs, text/rewrite.rs and text_regions/styled.rs take main's structure, with per-row alignment applied in it: - rewrite.rs: LineWriter keeps the paragraph's alignment and the rows' own (align, aligns); each line looks up its row's alignment (align_of) for justify and for its offset. Alignment::offset takes the row's alignment. Wrapped lines carry their row, as wrap returns it. - styled.rs: wrap_styled_rows also returns each row's draft line (row_lines), which the kept-rows check counts aligns by. - Imports for the moved modules (alignment_frame, BlockStyle, align_code, align_from, content in dispatch.rs).