about summary refs log tree commit diff stats
path: root/src/layout
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-12-11 22:14:29 +0100
committerbptato <nincsnevem662@gmail.com>2022-12-11 22:14:29 +0100
commit5931e0a5578852dcd0a7d7820be3012f2132f848 (patch)
tree774a03817b87040cd33c9eec1378d5c01e760d5b /src/layout
parenta6ba161aac13966ae6edab48caaccb348964eac0 (diff)
downloadchawan-5931e0a5578852dcd0a7d7820be3012f2132f848.tar.gz
layout/engine: fix wrap on pre-wrap (instead of pre-line)
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 88d87bb1..c22e96e7 100644
--- a/src/layout/engine.nim
+++ b/src/layout/engine.nim
@@ -24,7 +24,7 @@ type InlineState = object
   computed: CSSComputedValues
 
 func whitespacepre(computed: CSSComputedValues): bool {.inline.} =
-  computed{"white-space"} in {WHITESPACE_PRE, WHITESPACE_PRE_WRAP}
+  computed{"white-space"} in {WHITESPACE_PRE, WHITESPACE_PRE_LINE}
 
 func cellwidth(viewport: Viewport): int {.inline.} =
   viewport.window.ppc