diff options
author | Hans Hagen <pragma@wxs.nl> | 2021-12-24 19:46:30 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2021-12-24 19:46:30 +0100 |
commit | 1cc6c316feae649d3c8b64ef0c980dfd792c2347 (patch) | |
tree | d2153ed2d05808a40963f095fb2d29c4f5e5c4c8 /tex/context/base/mkxl/node-ext.lmt | |
parent | 19750b667c23a9f276032837d6c517063376bd0c (diff) | |
download | context-1cc6c316feae649d3c8b64ef0c980dfd792c2347.tar.gz |
2021-12-24 19:09:00
Diffstat (limited to 'tex/context/base/mkxl/node-ext.lmt')
-rw-r--r-- | tex/context/base/mkxl/node-ext.lmt | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/tex/context/base/mkxl/node-ext.lmt b/tex/context/base/mkxl/node-ext.lmt index fa15b9d19..de2e8fa54 100644 --- a/tex/context/base/mkxl/node-ext.lmt +++ b/tex/context/base/mkxl/node-ext.lmt @@ -133,14 +133,10 @@ do end function backends.latelua(current,pos_h,pos_v) -- todo: pass pos_h and pos_v (more efficient in lmtx) - local p = nodeproperties[current] - if p then - data = p.data - else - data = getdata(current) - end - noflatelua = noflatelua + 1 + local prop = nodeproperties[current] + local data = prop and prop.data or getdata(current) local kind = type(data) + noflatelua = noflatelua + 1 if kind == "table" then data.action(data.specification or data) elseif kind == "function" then @@ -149,7 +145,7 @@ do if kind ~= "string" then data = serialize(data) end - if #data ~= "" then + if data and #data ~= "" then local code = loadstring(data) if code then code() |