mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-01 22:19:10 -06:00
Rewriting a paragraph in one style split its text at white space and joined the words with one space, so a run of spaces, an indent or a trailing space typed in the editor was saved as one space or none. The text is now kept as typed (other white space becomes a space, and CR or CRLF become line breaks), and the wrapper keeps each run of spaces, dropping only the spaces where a row wraps. A justified (stretched) row still drops its indent and the spaces after its last word, as before, so word spacing reaches only the spaces between its words; keeping an indent on a justified row is a possible follow-up. Centred and right-aligned rows, and the editor's draft box, are measured to the last word, and a paragraph at 0 Tz is not justified. Fixes #4199 Fixes #3797