diff options
Diffstat (limited to 'src/layout/engine.nim')
-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) = |