summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/spac-chr.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2021-04-26 01:39:06 +0200
committerContext Git Mirror Bot <phg@phi-gamma.net>2021-04-26 01:39:06 +0200
commit643bd3f4610ad64823521fac6fc8bb5f1b76eb3f (patch)
tree08d3070c709f255a6a621b3f797b301014288aab /tex/context/base/mkiv/spac-chr.lua
parent8beb3b723a828ee7e1a12677b6ef04506ceac45f (diff)
downloadcontext-643bd3f4610ad64823521fac6fc8bb5f1b76eb3f.tar.gz
2021-04-26 00:54:00
Diffstat (limited to 'tex/context/base/mkiv/spac-chr.lua')
-rw-r--r--tex/context/base/mkiv/spac-chr.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/tex/context/base/mkiv/spac-chr.lua b/tex/context/base/mkiv/spac-chr.lua
index fa6eb18a5..7ec3e3cc4 100644
--- a/tex/context/base/mkiv/spac-chr.lua
+++ b/tex/context/base/mkiv/spac-chr.lua
@@ -130,7 +130,7 @@ end
local function nbsp(head,current)
local para = fontparameters[getfont(current)]
local attr = getattr(current,a_alignstate) or 0
- if attr >= 1 or attr <= 3 then -- flushright
+ if attr >= 1 and attr <= 3 then -- flushright
head, current = inject_nobreak_space(0x00A0,head,current,para.space,0,0)
else
head, current = inject_nobreak_space(0x00A0,head,current,para.space,para.spacestretch,para.spaceshrink)