diff options
author | Hans Hagen <pragma@wxs.nl> | 2020-08-06 19:42:33 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2020-08-06 19:42:33 +0200 |
commit | 6932ea879b43b36d023797e18b8bdcfc8cef05ba (patch) | |
tree | 92566591ee13ce6c106e9fa9254980ab6ed30faa /tex/context/base/mkiv/node-aux.lua | |
parent | 39be501f308c8bdea7a36b0b366edebc21d4f382 (diff) | |
download | context-6932ea879b43b36d023797e18b8bdcfc8cef05ba.tar.gz |
2020-08-06 18:58:00
Diffstat (limited to 'tex/context/base/mkiv/node-aux.lua')
-rw-r--r-- | tex/context/base/mkiv/node-aux.lua | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/tex/context/base/mkiv/node-aux.lua b/tex/context/base/mkiv/node-aux.lua index 4df41d61b..407ebb09c 100644 --- a/tex/context/base/mkiv/node-aux.lua +++ b/tex/context/base/mkiv/node-aux.lua @@ -459,14 +459,14 @@ do nuts.find_node = find_node - nodes.getnormalizeline = node.getnormalizeline or function() return 0 end - nodes.setnormalizeline = node.setnormalizeline or function() end + -- if CONTEXTLMTXMODE then ... end nuts.getnormalizedline = direct.getnormalizedline or function(h) if getid(h) == hlist_code and getsubtype(h) == line_code then local ls, rs = 0, 0 local lh, rh = 0, 0 - local is, ps = 0, 0 + local lp, rp = 0, 0 + local is = 0 local h = getlist(h) local t = findtail(h) for n, subtype in nextglue, h do @@ -475,10 +475,20 @@ do elseif subtype == lefthangskip_code then lh = getwidth(n) elseif subtype == righthangskip_code then rh = getwidth(n) elseif subtype == indentskip_code then is = getwidth(n) - elseif subtype == parfillskip_code then ps = getwidth(n) + elseif subtype == parfillskip_code then rp = getwidth(n) end end - return ls, rs, lh, rh, is, ps, h, t + return { + leftskip = ls, + rightskip = rs, + lefthangskip = lh, + righthangskip = rh, + indent = is, + parfillrightskip = rp, + parfillleftskip = lp, + head = h, + tail = t, + } end end |