diff options
author | bptato <nincsnevem662@gmail.com> | 2024-03-13 21:16:43 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-03-13 21:18:15 +0100 |
commit | 0ce307ef4535004708840497004395f09b74d67f (patch) | |
tree | dbecab8c649d219cb56259e7b26a119219d016de /src/layout | |
parent | 531bb1cc261be1e89e398417760fca1261583582 (diff) | |
download | chawan-0ce307ef4535004708840497004395f09b74d67f.tar.gz |
layout: remove word-spacing
this was a bad idea
Diffstat (limited to 'src/layout')
-rw-r--r-- | src/layout/engine.nim | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/layout/engine.nim b/src/layout/engine.nim index d90fc52c..371121a3 100644 --- a/src/layout/engine.nim +++ b/src/layout/engine.nim @@ -283,10 +283,7 @@ func computeShift(ictx: InlineContext, state: InlineState): LayoutUnit = if ictx.currentLine.atoms.len == 0 or ictx.currentLine.atoms[^1].t == INLINE_SPACING: return 0 - let spacing = state.computed{"word-spacing"} - if spacing.auto: - return ictx.cellwidth * ictx.whitespacenum - return spacing.px(ictx.lctx) * ictx.whitespacenum + return ictx.cellwidth * ictx.whitespacenum proc applyLineHeight(ictx: InlineContext, state: var LineBoxState, computed: CSSComputedValues) = |