diff options
author | Hans Hagen <pragma@wxs.nl> | 2018-08-15 19:40:19 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2018-08-15 19:40:19 +0200 |
commit | d6850b00fa0f937514389e8d090db87b0163a703 (patch) | |
tree | 145d9be2d7f5c5bddf908c014954911e50e1c6ea /tex/context/base/mkiv/data-tex.lua | |
parent | 36a37da721032b8d02fad41f22ad717ee8136f34 (diff) | |
download | context-d6850b00fa0f937514389e8d090db87b0163a703.tar.gz |
2018-08-15 18:54:00
Diffstat (limited to 'tex/context/base/mkiv/data-tex.lua')
-rw-r--r-- | tex/context/base/mkiv/data-tex.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tex/context/base/mkiv/data-tex.lua b/tex/context/base/mkiv/data-tex.lua index 2d2c9b24d..8f978a204 100644 --- a/tex/context/base/mkiv/data-tex.lua +++ b/tex/context/base/mkiv/data-tex.lua @@ -149,19 +149,19 @@ function helpers.textopener(tag,filename,filehandle,coding) currentline = currentline + 1 -- self.currentline = currentline local content = lines[currentline] - if not content then - return nil - elseif content == "" then + if content == "" then return "" -- elseif content == ctrl_d or ctrl_z then -- return nil -- we need this as \endinput does not work in prints - else + elseif content then local runner = textlineactions.runner if runner then return runner(content,filename,currentline,noflines,coding) or content else return content end + else + return nil end end end |