diff options
author | bptato <nincsnevem662@gmail.com> | 2025-02-15 16:55:28 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2025-02-15 16:55:28 +0100 |
commit | 5578fda7acbc5ef87a4efad0cbf07cb840f3f11d (patch) | |
tree | 45134c5e0f8a9d16938a5a9ae5b1395586b5ab55 /src/css | |
parent | 79d2518ca49f19da479e88a4eb35d73725fe71d8 (diff) | |
download | chawan-5578fda7acbc5ef87a4efad0cbf07cb840f3f11d.tar.gz |
layout: skip Cf characters
We cannot handle these yet.
Diffstat (limited to 'src/css')
-rw-r--r-- | src/css/layout.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/css/layout.nim b/src/css/layout.nim index 2a4e33b8..c2facdd3 100644 --- a/src/css/layout.nim +++ b/src/css/layout.nim @@ -1007,7 +1007,8 @@ proc layoutTextLoop(fstate: var FlowState; state: var InlineState; else: let pi = i let u = str.nextUTF8(i) - if luctx.isEnclosingMark(u) or luctx.isNonspacingMark(u): + if luctx.isEnclosingMark(u) or luctx.isNonspacingMark(u) or + luctx.isFormat(u): continue let w = u.width() fstate.checkWrap(state, u, w) |