diff options
Diffstat (limited to 'tex/context/base/page-lin.lua')
-rw-r--r-- | tex/context/base/page-lin.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tex/context/base/page-lin.lua b/tex/context/base/page-lin.lua index 676a4c7f6..fc38f7e6b 100644 --- a/tex/context/base/page-lin.lua +++ b/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 |