diff options
Diffstat (limited to 'Master/texmf-dist/tex/context/base/page-lin.lua')
-rw-r--r-- | Master/texmf-dist/tex/context/base/page-lin.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/context/base/page-lin.lua b/Master/texmf-dist/tex/context/base/page-lin.lua index 676a4c7f656..b830dbbb9ec 100644 --- a/Master/texmf-dist/tex/context/base/page-lin.lua +++ b/Master/texmf-dist/tex/context/base/page-lin.lua @@ -85,7 +85,8 @@ function lines.finalize(t) local getnumber = lines.number for _,p in next, t do for _,r in next, p do - if r.metadata.kind == "line" then + local m = r.metadata + if m and m.kind == "line" then local e = r.entries local u = r.userdata e.linenumber = getnumber(e.text or 0) -- we can nil e.text @@ -205,6 +206,10 @@ function boxed.stage_zero(n) return identify(texbox[n].list) end +-- reset ranges per page +-- store first and last per page +-- maybe just set marks directly + function boxed.stage_one(n,nested) current_list = { } local head = texbox[n] |