diff options
author | Hans Hagen <pragma@wxs.nl> | 2013-03-05 16:40:00 +0100 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2013-03-05 16:40:00 +0100 |
commit | 7be0d39244155e874321d77ef81078c5bd2817a9 (patch) | |
tree | 0c09404e97c825961c5ee25a31ecab080eff54e6 /tex/context/base/spac-adj.lua | |
parent | 4eeccc18e84e817ecf7045bcb0a8d35875006f42 (diff) | |
download | context-7be0d39244155e874321d77ef81078c5bd2817a9.tar.gz |
beta 2013.03.05 16:40
Diffstat (limited to 'tex/context/base/spac-adj.lua')
-rw-r--r-- | tex/context/base/spac-adj.lua | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/tex/context/base/spac-adj.lua b/tex/context/base/spac-adj.lua index 4cba2f91e..c87a9d17f 100644 --- a/tex/context/base/spac-adj.lua +++ b/tex/context/base/spac-adj.lua @@ -8,17 +8,16 @@ if not modules then modules = { } end modules ['spac-adj'] = { -- sort of obsolete code -local attribute = attributes.private('graphicvadjust') +local a_vadjust = attributes.private('graphicvadjust') -local nodecodes = nodes.nodecodes +local nodecodes = nodes.nodecodes -local hlist_code = nodecodes.hlist -local vlist_code = nodecodes.vlist +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 +local remove_node = nodes.remove +local hpack_node = node.hpack +local vpack_node = node.vpack function nodes.handlers.graphicvadjust(head,groupcode) -- we can make an actionchain for mvl only if groupcode == "" then -- mvl only @@ -26,7 +25,7 @@ function nodes.handlers.graphicvadjust(head,groupcode) -- we can make an actionc while h do local id = h.id if id == hlist_code or id == vlist_code then - local a = has_attribute(h,attribute) + local a = h[a_vadjust] if a then if p then local n |