diff options
author | Hans Hagen <pragma@wxs.nl> | 2011-02-25 22:03:00 +0100 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2011-02-25 22:03:00 +0100 |
commit | 3c5dbaefc44f38d6da23a7db2c06a0a4af0996fa (patch) | |
tree | c3ad9361af8d3f1dd37de52463fa505680446a1e /tex/context/base/spac-ver.lua | |
parent | 15ee46403d36de6f29b4e45171e061708ec69193 (diff) | |
download | context-3c5dbaefc44f38d6da23a7db2c06a0a4af0996fa.tar.gz |
beta 2011.02.25 22:03
Diffstat (limited to 'tex/context/base/spac-ver.lua')
-rw-r--r-- | tex/context/base/spac-ver.lua | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/tex/context/base/spac-ver.lua b/tex/context/base/spac-ver.lua index ecd5139fa..a734c5f38 100644 --- a/tex/context/base/spac-ver.lua +++ b/tex/context/base/spac-ver.lua @@ -1267,68 +1267,7 @@ end -- We will split this module so a few locals are repeated. Also this will be -- rewritten. -local attribute = attributes.private('graphicvadjust') - -local nodecodes = nodes.nodecodes - -local hlist_code = nodecodes.hlist -local vlist_code = nodecodes.vlist - -local remove_node = nodes.remove -local hpack_node = node.hpack -local vpack_node = node.vpack -local has_attribute = node.has_attribute - -function nodes.handlers.graphicvadjust(head,groupcode) -- we can make an actionchain for mvl only - if groupcode == "" then -- mvl only - local h, p, done = head, nil, false - while h do - local id = h.id - if id == hlist_code or id == vlist_code then - local a = has_attribute(h,attribute) - if a then - if p then - local n - head, h, n = remove_node(head,h) - local pl = p.list - if n.width ~= 0 then - n = hpack_node(n,0,'exactly') -- todo: dir - end - if pl then - pl.prev = n - n.next = pl - end - p.list = n - done = true - else - -- can't happen - end - else - p = h - h = h.next - end - else - h = h.next - end - end - return head, done - else - return head, false - end -end - ---~ function nodes.handlers.graphicvadjust(head,groupcode) -- we can make an actionchain for mvl only ---~ if groupcode == "" then -- mvl only ---~ return head, false ---~ else ---~ return head, false ---~ end ---~ end - ---~ nodes.tasks.appendaction("finalizers", "lists", "nodes.handlers.graphicvadjust") - nodes.builders = nodes.builder or { } - local builders = nodes.builders local actions = nodes.tasks.actions("vboxbuilders") |