diff options
author | bptato <nincsnevem662@gmail.com> | 2023-07-25 23:05:43 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-07-25 23:05:43 +0200 |
commit | 1a4e10ad5e9145b39f95f42b52db8b720fa25354 (patch) | |
tree | 3b505096a2644383c3eb319afde92a2575a687a1 /src | |
parent | 7101f7508cfc2ca6a57c18d3ec88f6e9021d7ad3 (diff) | |
download | chawan-1a4e10ad5e9145b39f95f42b52db8b720fa25354.tar.gz |
layout: use nowrap function
Diffstat (limited to 'src')
-rw-r--r-- | src/layout/engine.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/layout/engine.nim b/src/layout/engine.nim index 9f4f8cb1..20793cbc 100644 --- a/src/layout/engine.nim +++ b/src/layout/engine.nim @@ -354,7 +354,7 @@ proc flushLine(ictx: InlineContext, computed: CSSComputedValues) = ictx.finishLine(computed, true) proc checkWrap(state: var InlineState, r: Rune) = - if state.computed{"white-space"} in {WHITESPACE_NOWRAP, WHITESPACE_PRE}: + if state.computed.nowrap: return let shift = state.ictx.computeShift(state.computed) let rw = r.width() |