diff options
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() |