summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/spac-ali.lua
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/context/base/spac-ali.lua')
-rw-r--r--Master/texmf-dist/tex/context/base/spac-ali.lua20
1 files changed, 10 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/context/base/spac-ali.lua b/Master/texmf-dist/tex/context/base/spac-ali.lua
index effd26fe482..ceb278433f2 100644
--- a/Master/texmf-dist/tex/context/base/spac-ali.lua
+++ b/Master/texmf-dist/tex/context/base/spac-ali.lua
@@ -15,12 +15,12 @@ local prependaction = tasks.prependaction
local disableaction = tasks.disableaction
local enableaction = tasks.enableaction
-local has_attribute = node.has_attribute
-local unset_attribute = node.unset_attribute
local slide_nodes = node.slide
local hpack_nodes = node.hpack -- nodes.fasthpack not really faster here
-local link_nodes = nodes.link
+local unsetvalue = attributes.unsetvalue
+
+local concat_nodes = nodes.concat
local nodecodes = nodes.nodecodes
local listcodes = nodes.listcodes
@@ -61,7 +61,7 @@ local function handler(head,leftpage,realpageno)
local id = current.id
if id == hlist_code then
if current.subtype == line_code then
- local a = has_attribute(current,a_realign)
+ local a = current[a_realign]
if not a or a == 0 then
-- skip
else
@@ -77,22 +77,22 @@ local function handler(head,leftpage,realpageno)
action = leftpage and 2 or 1
end
if action == 1 then
- current.list = hpack_nodes(link_nodes(current.list,new_stretch(3)),current.width,"exactly")
+ current.list = hpack_nodes(concat_nodes{current.list,new_stretch(3)},current.width,"exactly")
if trace_realign then
- report_realign("flush left: align %s, page %s, realpage %s",align,pageno,realpageno)
+ report_realign("flushing left, align %a, page %a, realpage %a",align,pageno,realpageno)
end
elseif action == 2 then
- current.list = hpack_nodes(link_nodes(new_stretch(3),current.list),current.width,"exactly")
+ current.list = hpack_nodes(concat_nodes{new_stretch(3),current.list},current.width,"exactly")
if trace_realign then
- report_realign("flush right: align %s, page %s, realpage %s",align,pageno,realpageno)
+ report_realign("flushing right. align %a, page %a, realpage %a",align,pageno,realpageno)
end
elseif trace_realign then
- report_realign("invalid: align %s, page %s, realpage %s",align,pageno,realpageno)
+ report_realign("invalid flushing, align %a, page %a, realpage %a",align,pageno,realpageno)
end
done = true
nofrealigned = nofrealigned + 1
end
- unset_attribute(current,a_realign)
+ current[a_realign] = unsetvalue
end
end
handler(current.list,leftpage,realpageno)