From fd9c4ecd4421d087de21bef1e53d8ffb016285b0 Mon Sep 17 00:00:00 2001 From: Hans Hagen Date: Sun, 2 Sep 2018 00:04:51 +0200 Subject: 2018-09-01 23:20:00 --- tex/context/base/mkiv/node-res.lua | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) (limited to 'tex/context/base/mkiv/node-res.lua') diff --git a/tex/context/base/mkiv/node-res.lua b/tex/context/base/mkiv/node-res.lua index 3eedc2348..1434e51dd 100644 --- a/tex/context/base/mkiv/node-res.lua +++ b/tex/context/base/mkiv/node-res.lua @@ -397,24 +397,20 @@ function nutpool.userrule(width,height,depth,dir) -- w/h/d == nil will let them return n end -if LUATEXFUNCTIONALITY > 6738 then +local outlinerule = register_nut(new_nut(nodecodes.rule,rulecodes.outline)) setdir(rule, "TLT") - local outlinerule = register_nut(new_nut(nodecodes.rule,rulecodes.outline)) setdir(rule, "TLT") - - function nutpool.outlinerule(width,height,depth,line,dir) -- w/h/d == nil will let them adapt - local n = copy_nut(outlinerule) - if width or height or depth then - setwhd(n,width,height,depth) - end - if line then - setfield(n,"transform",line) - end - if dir then - setdir(n,dir) - end - return n +function nutpool.outlinerule(width,height,depth,line,dir) -- w/h/d == nil will let them adapt + local n = copy_nut(outlinerule) + if width or height or depth then + setwhd(n,width,height,depth) end - + if line then + setfield(n,"transform",line) + end + if dir then + setdir(n,dir) + end + return n end function nutpool.leader(width,list) -- cgit v1.2.3