diff options
author | Philipp Gesang <gesang@stud.uni-heidelberg.de> | 2013-03-12 18:33:19 +0100 |
---|---|---|
committer | Philipp Gesang <gesang@stud.uni-heidelberg.de> | 2013-03-12 18:33:19 +0100 |
commit | 8026fb824e8c6505d61f2099642fa4d671198769 (patch) | |
tree | 963e6a3fbe3abc86b74e7a2bc74c74962e3f346f /mod/tex/context/third/rst/rst_parser.lua | |
parent | 942daebfbd9ce27aa5208411d58226100a1b2935 (diff) | |
download | context-rst-8026fb824e8c6505d61f2099642fa4d671198769.tar.gz |
kill all the ipairs()
Diffstat (limited to 'mod/tex/context/third/rst/rst_parser.lua')
-rw-r--r-- | mod/tex/context/third/rst/rst_parser.lua | 6 |
1 files changed, 4 insertions, 2 deletions
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 |