summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/spac-chr.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2019-12-17 17:22:50 +0100
committerContext Git Mirror Bot <phg@phi-gamma.net>2019-12-17 17:22:50 +0100
commitd1f4da02201fd33c139ee1756296e8df53580ff7 (patch)
treed24fad194af62020481cac8d2041913a36789e8a /tex/context/base/mkiv/spac-chr.lua
parent37cca59f16fc3ab5bf3ce19fd94161d1c2f6ffdc (diff)
downloadcontext-d1f4da02201fd33c139ee1756296e8df53580ff7.tar.gz
2019-12-17 16:25:00
Diffstat (limited to 'tex/context/base/mkiv/spac-chr.lua')
-rw-r--r--tex/context/base/mkiv/spac-chr.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/tex/context/base/mkiv/spac-chr.lua b/tex/context/base/mkiv/spac-chr.lua
index b32565f19..9b8453ca6 100644
--- a/tex/context/base/mkiv/spac-chr.lua
+++ b/tex/context/base/mkiv/spac-chr.lua
@@ -27,6 +27,7 @@ local nodes, node = nodes, node
local nuts = nodes.nuts
+local getboth = nuts.getboth
local getnext = nuts.getnext
local getprev = nuts.getprev
local getattr = nuts.getattr
@@ -198,7 +199,7 @@ local methods = {
end,
[0x00A0] = function(head,current) -- nbsp
- local next = getnext(current)
+ local prev, next = getboth(current)
if next then
local char = isglyph(current)
if not char then
@@ -215,7 +216,6 @@ local methods = {
return false
end
end
- local prev = getprev(current)
if prev then
local char = isglyph(prev)
if char and nbsphash[char] then