summaryrefslogtreecommitdiff
path: root/tex/context/base/luat-tex.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2008-04-18 14:17:00 +0200
committerHans Hagen <pragma@wxs.nl>2008-04-18 14:17:00 +0200
commitd948cb4eddff16f17051d8078b4c55cdd8e8f681 (patch)
tree633b47f4e9bf041c8b17002daf06d7e735bbc7b7 /tex/context/base/luat-tex.lua
parent66c43ffc47e4bf28c112bc5c593d1853212f7715 (diff)
downloadcontext-d948cb4eddff16f17051d8078b4c55cdd8e8f681.tar.gz
stable 2008.04.18 14:17
Diffstat (limited to 'tex/context/base/luat-tex.lua')
-rw-r--r--tex/context/base/luat-tex.lua14
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