mirror of
https://github.com/storytold/wordcraft.git
synced 2026-10-25 19:07:17 -06:00
Paste of plain text from another program gave every line after the first a paragraph with default formatting. The text became a fragment of unformatted paragraphs (Fragment::from_text), and insert_fragment keeps the target's formatting only in the first one. Pasting several lines into a right-to-left paragraph turned all but the first left-to-right, and the text after the caret lost its paragraph formatting too. Paste now inserts plain text as Keep Text Only does. Each line after the first splits the paragraph as Enter does, so it keeps the paragraph's direction, style, alignment, indents, spacing and list. Empty lines become empty paragraphs with that formatting. Copies from WordCraft and HTML or RTF from other programs keep their own formatting as before. A paste is still one undo step. Tests cover a right-to-left paragraph, empty lines and a final line break, and a list. The typing and UI parity docs and the ROADMAP progress log have rows for the change. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Brandon Thomas <echelon@gmail.com>