fix: break a word that is wider than its line

A long URL or a German compound ran straight past the right margin, where
Word and LibreOffice break it — measured against LO in a 2cm column, the
break now falls on the same character.

`break-word` rather than `anywhere`, so a table column's minimum width is
still its longest word.
This commit is contained in:
Steffen Becker committed 2026-08-08 12:35:05 +00:00
1 parent 77980e4b9c
commit 09d8cf20b8
1 file changed
+4
+4
View File
@@ -383,6 +383,10 @@
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;
/* A word too long for its line (a URL, a German compound) is broken by Word and
LibreOffice rather than run past the margin. `break-word`, not `anywhere`, so a
table column's min-content width is still the longest word. */
overflow-wrap: break-word;
}
.paper .tiptap h1,