From 8026fb824e8c6505d61f2099642fa4d671198769 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Tue, 12 Mar 2013 18:33:19 +0100 Subject: kill all the ipairs() --- mod/tex/context/third/rst/rst_parser.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'mod/tex/context/third/rst/rst_parser.lua') diff --git a/mod/tex/context/third/rst/rst_parser.lua b/mod/tex/context/third/rst/rst_parser.lua index d0d8de9..27c77e2 100644 --- a/mod/tex/context/third/rst/rst_parser.lua +++ b/mod/tex/context/third/rst/rst_parser.lua @@ -45,7 +45,9 @@ do local slen = #str + 3 --str = "*["..str.."]" str = stringformat("*[%4d][%s]", ndebug, str) - for i,j in ipairs({...}) do + local arglst = { ... } + for i=1, #arglst do + local current = arglst[i] if 80 - i * 8 - slen < 0 then local indent = "" for i=1, slen do @@ -53,7 +55,7 @@ do end str = str .. "\n" .. indent end - str = str .. stringformat(" |%6s", stringstrip(tostring(j))) + str = str .. stringformat(" |%6s", stringstrip(tostring(current))) end iowrite(str .. " |\n") return 0 -- cgit v1.2.3