diff options
author | Hans Hagen <pragma@wxs.nl> | 2019-12-17 17:22:50 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2019-12-17 17:22:50 +0100 |
commit | d1f4da02201fd33c139ee1756296e8df53580ff7 (patch) | |
tree | d24fad194af62020481cac8d2041913a36789e8a /tex/context/base/mkiv/node-syn.lua | |
parent | 37cca59f16fc3ab5bf3ce19fd94161d1c2f6ffdc (diff) | |
download | context-d1f4da02201fd33c139ee1756296e8df53580ff7.tar.gz |
2019-12-17 16:25:00
Diffstat (limited to 'tex/context/base/mkiv/node-syn.lua')
-rw-r--r-- | tex/context/base/mkiv/node-syn.lua | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/tex/context/base/mkiv/node-syn.lua b/tex/context/base/mkiv/node-syn.lua index 9096809c4..68a05234e 100644 --- a/tex/context/base/mkiv/node-syn.lua +++ b/tex/context/base/mkiv/node-syn.lua @@ -154,8 +154,11 @@ local kern_code = nodecodes.kern ----- rule_code = nodecodes.rule local hlist_code = nodecodes.hlist local vlist_code = nodecodes.vlist +local dir_code = nodecodes.dir local fontkern_code = kerncodes.fontkern +local cancel_code = nodes.dircodes.cancel + local insert_before = nuts.insert_before local insert_after = nuts.insert_after @@ -641,6 +644,19 @@ local function collect_max(head,parent) current = getnext(current) if current then id = getid(current) + +-- while id == dir_code do +-- current = getnext(current) +-- if current then +-- id = getid(current) +-- else +-- if tag > 0 then +-- head = inject(parent,head,first,last,tag,line) +-- end +-- return head +-- end +-- end + else if tag > 0 then head = inject(parent,head,first,last,tag,line) @@ -649,12 +665,12 @@ local function collect_max(head,parent) end end end - -- pick up(as id can have changed) + -- pick up (as id can have changed) if id == hlist_code or id == vlist_code then local list = getlist(current) if list then local l = collect(list,current) - if l ~= list then + if l and l ~= list then setlist(current,l) end end @@ -692,7 +708,7 @@ end function synctex.stop() if enabled then --- filehandle:write(s_vlist,s_hlist) + -- filehandle:write(s_vlist,s_hlist) filehandle:write(s_hlist) writeanchor() filehandle:write("}",nofsheets,eol) |