diff options
Diffstat (limited to 'tex/context/base/luat-tex.lua')
| -rw-r--r-- | tex/context/base/luat-tex.lua | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/tex/context/base/luat-tex.lua b/tex/context/base/luat-tex.lua index 78e4501a1..c241bcf80 100644 --- a/tex/context/base/luat-tex.lua +++ b/tex/context/base/luat-tex.lua @@ -67,14 +67,24 @@ if texconfig and not texlua then input.logger('= ' .. tag .. ' closer (' .. unicode.utfname[u] .. ')',filename) input.show_close(filename) end, +--~ getline = function(n) +--~ local line = t.lines[n] +--~ if not line or line == "" then +--~ return "" +--~ else +--~ local translator = input.filters.utf_translator +--~ return (translator and translator(line)) or line +--~ end +--~ end, reader = function(self) self = self or t local current, lines = self.current, self.lines if current >= #lines then return nil else - self.current = current + 1 - local line = lines[self.current] + current = current + 1 + self.current = current + local line = lines[current] if line == "" then return "" else |
