summaryrefslogtreecommitdiff
path: root/tex/context/base/data-tex.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/data-tex.lua')
-rw-r--r--tex/context/base/data-tex.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/tex/context/base/data-tex.lua b/tex/context/base/data-tex.lua
index d6c375b52..fddd04bcc 100644
--- a/tex/context/base/data-tex.lua
+++ b/tex/context/base/data-tex.lua
@@ -82,10 +82,14 @@ function helpers.textopener(tag,filename,filehandle)
elseif trace_locating then
report_tex("%s opener, '%s' opened",tag,filename)
end
+ local noflines = #lines
+ if lines[noflines] == "" then -- maybe some special check is needed
+ lines[noflines] = nil
+ end
logs.show_open(filename)
return {
filename = filename,
- noflines = #lines,
+ noflines = noflines,
currentline = 0,
close = function()
if trace_locating then