summaryrefslogtreecommitdiff
path: root/tex/context/base/node-fin.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2012-06-27 14:37:00 +0200
committerHans Hagen <pragma@wxs.nl>2012-06-27 14:37:00 +0200
commit915458f50da433e6c3a68ee21b76a98757ec8677 (patch)
treebd37c4c109111d95bed43f615eb7280108fd726b /tex/context/base/node-fin.lua
parent27fb5e9d85d8abbe7627085ef5141e944c10fd92 (diff)
downloadcontext-915458f50da433e6c3a68ee21b76a98757ec8677.tar.gz
beta 2012.06.27 14:37
Diffstat (limited to 'tex/context/base/node-fin.lua')
-rw-r--r--tex/context/base/node-fin.lua32
1 files changed, 16 insertions, 16 deletions
diff --git a/tex/context/base/node-fin.lua b/tex/context/base/node-fin.lua
index dadbf80d3..84032c22d 100644
--- a/tex/context/base/node-fin.lua
+++ b/tex/context/base/node-fin.lua
@@ -699,26 +699,26 @@ local function stacker(namespace,attribute,head,default) -- no triggering, no in
end
elseif id == hlist_code or id == vlist_code then
local content = current.list
- if content then
- if nslistwise then
- local a = has_attribute(current,attribute)
- if a and attrib ~= a and nslistwise[a] then -- viewerlayer
- local p = attrib
- attrib, done = a, true
- head = insert_node_before(head,current,copy_node(nsdata[a]))
- current.list = stacker(namespace,attribute,content,attrib)
- head, current = insert_node_after(head,current,copy_node(nsnone))
- attrib = p
- else
- local ok = false
- current.list, ok = stacker(namespace,attribute,content,attrib)
- done = done or ok
- end
+ if not content then
+ -- skip
+ elseif nslistwise then
+ local a = has_attribute(current,attribute)
+ if a and attrib ~= a and nslistwise[a] then -- viewerlayer
+ local p = attrib
+ attrib, done = a, true
+ head = insert_node_before(head,current,copy_node(nsdata[a]))
+ current.list = stacker(namespace,attribute,content,attrib)
+ head, current = insert_node_after(head,current,copy_node(nsnone))
+ attrib = p
else
local ok = false
- current.list, ok = stacker(namespace,attribute,content,default)
+ current.list, ok = stacker(namespace,attribute,content,attrib)
done = done or ok
end
+ else
+ local ok = false
+ current.list, ok = stacker(namespace,attribute,content,default)
+ done = done or ok
end
end
previous = current