about summary refs log tree commit diff stats
path: root/src/layout
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2021-11-15 23:16:03 +0100
committerbptato <nincsnevem662@gmail.com>2021-11-19 21:51:47 +0100
commitbbd416f5ffba5ba5e5d41869042cef1f85323146 (patch)
treed0ea32286e9cd3633d84c7a1a64a33ecde8db68e /src/layout
parentd3d9139dd6aa535ed1d7f2c78accd6ac5fa89b3e (diff)
downloadchawan-bbd416f5ffba5ba5e5d41869042cef1f85323146.tar.gz
Operation "get rid of FlexibleCell" part one
Diffstat (limited to 'src/layout')
-rw-r--r--src/layout/engine.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/layout/engine.nim b/src/layout/engine.nim
index 17cce41c..506770b9 100644
--- a/src/layout/engine.nim
+++ b/src/layout/engine.nim
@@ -99,7 +99,7 @@ proc processInlineBox(parent: CSSBox, str: string): CSSBox =
       of WHITESPACE_NORMAL, WHITESPACE_NOWRAP:
         r = Rune(' ')
       of WHITESPACE_PRE, WHITESPACE_PRE_LINE, WHITESPACE_PRE_WRAP:
-        if r == Rune('\n'):
+        if str[i - 1] == '\n':
           inlineWrap(ibox, rowi, fromx, rowbox)
           ibox.context.whitespace = false
           ibox.context.ws_initial = true