diff options
Diffstat (limited to 'src/layout')
-rw-r--r-- | src/layout/engine.nim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/layout/engine.nim b/src/layout/engine.nim index e5c0ddb3..9b03c999 100644 --- a/src/layout/engine.nim +++ b/src/layout/engine.nim @@ -707,6 +707,7 @@ proc addAtom(ictx: var InlineContext; state: var InlineState; iastate: InlineAtomState; atom: InlineAtom): bool = result = false var shift = ictx.computeShift(state) + ictx.currentLine.charwidth += ictx.whitespacenum ictx.whitespacenum = 0 # Line wrapping if ictx.shouldWrap(atom.size.w + shift, state.computed): |