diff options
Diffstat (limited to 'tex/context/base/mkiv/node-nut.lua')
-rw-r--r-- | tex/context/base/mkiv/node-nut.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tex/context/base/mkiv/node-nut.lua b/tex/context/base/mkiv/node-nut.lua index 4f89d93fc..0e63247ea 100644 --- a/tex/context/base/mkiv/node-nut.lua +++ b/tex/context/base/mkiv/node-nut.lua @@ -94,6 +94,7 @@ local direct = node.direct local fastcopy = table.fastcopy local texget = tex.get +local texgetskip = tex.getskip local nodecodes = nodes.nodecodes local hlist_code = nodecodes.hlist @@ -151,7 +152,9 @@ nuts.setattr = direct.set_attribute or setfield nuts.getbox = direct.getbox nuts.setbox = direct.setbox -nuts.getskip = direct.getskip or function(s) return tonut(texget(s)) end +nuts.getskip = function(s) + return tonut(type(s) == "number" and texgetskip(s) or texget(s)) +end -- helpers |