summaryrefslogtreecommitdiff
path: root/tex/context/base/node-res.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/node-res.lua')
-rw-r--r--tex/context/base/node-res.lua16
1 files changed, 12 insertions, 4 deletions
diff --git a/tex/context/base/node-res.lua b/tex/context/base/node-res.lua
index ea34f935c..1487faa66 100644
--- a/tex/context/base/node-res.lua
+++ b/tex/context/base/node-res.lua
@@ -183,10 +183,18 @@ function pool.rule(width,height,depth,dir)
return n
end
-function pool.latelua(code)
- local n = copy_node(latelua)
- n.data = code
- return n
+if node.has_field(latelua,'string') then
+ function pool.latelua(code)
+ local n = copy_node(latelua)
+ n.string = code
+ return n
+ end
+else
+ function pool.latelua(code)
+ local n = copy_node(latelua)
+ n.data = code
+ return n
+ end
end
function pool.leftmarginkern(glyph,width)