diff options
author | bptato <nincsnevem662@gmail.com> | 2021-11-15 20:18:29 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2021-11-15 20:18:29 +0100 |
commit | 9b95435ae6a859f5da69d2fc473099df5102e243 (patch) | |
tree | 65b9d25fef0064fa9401543b15e5fda83b58df7a /src/layout | |
parent | 0dc4172725322bdfd66353051cae1b929be52679 (diff) | |
download | chawan-9b95435ae6a859f5da69d2fc473099df5102e243.tar.gz |
Profiling and more CSS compatibility
Diffstat (limited to 'src/layout')
-rw-r--r-- | src/layout/engine.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/layout/engine.nim b/src/layout/engine.nim index 7d279b87..7b82cdf9 100644 --- a/src/layout/engine.nim +++ b/src/layout/engine.nim @@ -87,7 +87,8 @@ proc processInlineBox(parent: CSSBox, str: string): CSSBox = fastRuneAt(str, i, r) if rowbox.width + r.width() > ibox.width: inlineWrap(ibox, rowi, fromx, rowbox) - if r.isWhitespace(): + if r != Rune(0x00A0) and #NBSP + r.isWhitespace(): let wsr = ibox.cssvalues[PROPERTY_WHITESPACE].whitespace if ibox.context.whitespace: if ibox.context.ws_initial: |