From 6932ea879b43b36d023797e18b8bdcfc8cef05ba Mon Sep 17 00:00:00 2001 From: Hans Hagen Date: Thu, 6 Aug 2020 19:42:33 +0200 Subject: 2020-08-06 18:58:00 --- tex/context/base/mkiv/node-aux.lua | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'tex/context/base/mkiv/node-aux.lua') 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 -- cgit v1.2.3