From 6c256c6533a958f9aca92107f8db1d76c8f71149 Mon Sep 17 00:00:00 2001 From: Steffen Becker Date: Thu, 6 Aug 2026 20:46:17 +0200 Subject: [PATCH] fix: add pre-wrap for line-end space --- src/styles/editor.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/styles/editor.css b/src/styles/editor.css index bef96be..4b6a168 100644 --- a/src/styles/editor.css +++ b/src/styles/editor.css @@ -377,6 +377,10 @@ /* Tab stops every 1.25cm, matching ODF's default tab interval. */ .paper .tiptap { tab-size: 1.25cm; + /* prosemirror-view sets `break-spaces`, which forbids a line-end space from + hanging into the margin, so lines break one word earlier than in + Word/LibreOffice. `pre-wrap` lets it hang, as they do. */ + white-space: pre-wrap; } .paper .tiptap h1,