diff options
author | Hans Hagen <pragma@wxs.nl> | 2023-05-27 12:37:50 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2023-05-27 12:37:50 +0200 |
commit | 32381f97e98465953bfde24b4436093e70fbe70f (patch) | |
tree | 1f585cf7af509e76c64aca108cecd23acd6fb437 /tex/context/base/mkxl/node-res.lmt | |
parent | bb8ae12f4f94189fd1540b201e2aea78f485de97 (diff) | |
download | context-32381f97e98465953bfde24b4436093e70fbe70f.tar.gz |
2023-05-27 12:16:00
Diffstat (limited to 'tex/context/base/mkxl/node-res.lmt')
-rw-r--r-- | tex/context/base/mkxl/node-res.lmt | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/tex/context/base/mkxl/node-res.lmt b/tex/context/base/mkxl/node-res.lmt index b514a3568..cb60e9915 100644 --- a/tex/context/base/mkxl/node-res.lmt +++ b/tex/context/base/mkxl/node-res.lmt @@ -70,11 +70,12 @@ local setwidth = nuts.setwidth local setsubtype = nuts.setsubtype local setleader = nuts.setleader local setclass = nuts.setclass - local setdata = nuts.setdata local setoffsets = nuts.setoffsets local setvalue = nuts.setvalue +local setruledimensions = nuts.setruledimensions + local copy_nut = nuts.copyonly local new_nut = nuts.new local flush_nut = nuts.flush @@ -356,6 +357,8 @@ function nutpool.emptyrule(width,height,depth) -- w/h/d == nil will let them ada return n end +-- data left right + function nutpool.strutrule(width,height,depth) -- w/h/d == nil will let them adapt local n = copy_nut(strutrule) if width or height or depth then @@ -399,11 +402,10 @@ function nutpool.boxrule(width,height,depth) -- w/h/d == nil will let them adapt return n end -function nutpool.virtualrule(width,height,depth) -- w/h/d == nil will let them adapt +function nutpool.virtualrule(width,height,depth,data) local n = copy_nut(virtualrule) - if width or height or depth then - setdata(n,width) - setoffsets(n,nil,nil,height,depth) + if width or height or depth or data then + setruledimensions(n,width,height,depth,data) end return n end |