Skip to content

Commit d02caf5

Browse files
committed
feat(karaxpython/ui): wrap line if overflow
1 parent 75cc8ce commit d02caf5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Python/karaxpython.nim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ template oneReplLineNode(editNodeClasses;
5050
(flex, kstring"1"), # without this, it becomes uneditable
5151
(border, kstring"none"),
5252
(outline, kstring"none"),
53+
(wordBreak, kstring"break-all"), # break anywhere, excluding CJK
54+
#(lineBreak, kstring"anywhere"), # break anywhere, for CJK, not sup by karax
55+
#(wordWrap, kstring"anywhere"), # alias of overflow-wrap, not sup by karax
56+
(whiteSpace, kstring"pre-wrap"), # Preserve spaces and allow wrapping
5357
suitHeight,
5458
)):
5559
editExpr

0 commit comments

Comments
 (0)