diff options
author | Context Git Mirror Bot <phg42.2a@gmail.com> | 2014-12-09 00:15:03 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2014-12-09 00:15:03 +0100 |
commit | ea2c169d913257338dc4167094cf5ccf91212d43 (patch) | |
tree | 5261e2a1274147ad8edb7847b57e6aa7390fd3d0 /tex/context/base/lang-hyp.lua | |
parent | 7d25823db5c96e6877dd74158bb9847ec2666268 (diff) | |
download | context-ea2c169d913257338dc4167094cf5ccf91212d43.tar.gz |
2014-12-08 23:49:00
Diffstat (limited to 'tex/context/base/lang-hyp.lua')
-rw-r--r-- | tex/context/base/lang-hyp.lua | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tex/context/base/lang-hyp.lua b/tex/context/base/lang-hyp.lua index d6217857b..6bbc17fca 100644 --- a/tex/context/base/lang-hyp.lua +++ b/tex/context/base/lang-hyp.lua @@ -780,11 +780,8 @@ if context then } local function somehyphenchar(c) - if c == "" or c == "0" then - return nil - else - return type(c) == "string" and utfbyte(c) or tonumber(c) - end + c = tonumber(c) + return c ~= 0 and c or nil end local function definefeatures(name,featureset) |