diff options
author | Marius <mariausol@gmail.com> | 2012-10-15 20:20:24 +0300 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2012-10-15 20:20:24 +0300 |
commit | 26935233a6565bd73e53e2228ac98779fd3ab33d (patch) | |
tree | 0d1102a347b4fa86493a21744c8e6141885ed2d7 /tex/context/base/node-fin.lua | |
parent | f5507b17b30a20c0e3c279291ce448b7886e3b0c (diff) | |
download | context-26935233a6565bd73e53e2228ac98779fd3ab33d.tar.gz |
beta 2012.10.15 19:10
Diffstat (limited to 'tex/context/base/node-fin.lua')
-rw-r--r-- | tex/context/base/node-fin.lua | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tex/context/base/node-fin.lua b/tex/context/base/node-fin.lua index eb8864bff..27793716d 100644 --- a/tex/context/base/node-fin.lua +++ b/tex/context/base/node-fin.lua @@ -676,7 +676,9 @@ local function stacker(namespace,attribute,head,default) -- no triggering, no in if a ~= attrib then local n = nsstep(a) if n then - head = insert_node_before(head,current,n) -- copy_node(nsdata[a])) + -- !!!! TEST CODE !!!! +-- head = insert_node_before(head,current,copy_node(nsdata[tonumber(n)])) -- a + head = insert_node_before(head,current,n) -- a end attrib, done, okay = a, true, true end @@ -700,14 +702,11 @@ local function stacker(namespace,attribute,head,default) -- no triggering, no in -- skip elseif nslistwise then local a = has_attribute(current,attribute) --- print(a,attrib,nslistwise[a],a and attrib ~= a and nslistwise[a]) if a and attrib ~= a and nslistwise[a] then -- viewerlayer done = true --- print("yes+",a,nsdata[a].data) head = insert_node_before(head,current,copy_node(nsdata[a])) current.list = stacker(namespace,attribute,content,a) head, current = insert_node_after(head,current,copy_node(nsnone)) --- print("yes-",a,nsnone.data) else local ok = false current.list, ok = stacker(namespace,attribute,content,attrib) @@ -729,7 +728,9 @@ local function stacker(namespace,attribute,head,default) -- no triggering, no in if okay then local n = nsend() if n then - head = insert_node_after(head,previous,n) -- copy_node(nsdata[a])) + -- !!!! TEST CODE !!!! +-- head = insert_node_after(head,previous,copy_node(nsdata[tostring(n)])) + head = insert_node_after(head,previous,n) end end return head, done |