diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2010-05-21 06:22:29 +0300 |
---|---|---|
committer | Khaled Hosny <khaledhosny@eglug.org> | 2010-05-21 06:22:29 +0300 |
commit | 5f2ef13d20837eb9c0fe84a378e70c5066e6d021 (patch) | |
tree | 8da8eb76198b5015119d88aeb0480dedefa27e1d /lualibs-string.lua | |
parent | 2ede45796e70760267e4928dfff04d3546a8f159 (diff) | |
download | lualibs-5f2ef13d20837eb9c0fe84a378e70c5066e6d021.tar.gz |
Sync with ConTeXt beta (beta 2010.05.20)
Needed to sync luaotfload.
Diffstat (limited to 'lualibs-string.lua')
-rw-r--r-- | lualibs-string.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lualibs-string.lua b/lualibs-string.lua index 25b8f8e..9856d52 100644 --- a/lualibs-string.lua +++ b/lualibs-string.lua @@ -230,7 +230,7 @@ function string:totable() return lpegmatch(pattern,self) end ---~ for _, str in ipairs { +--~ local t = { --~ "1234567123456712345671234567", --~ "a\tb\tc", --~ "aa\tbb\tcc", @@ -238,7 +238,10 @@ end --~ "aaaa\tbbbb\tcccc", --~ "aaaaa\tbbbbb\tccccc", --~ "aaaaaa\tbbbbbb\tcccccc", ---~ } do print(string.tabtospace(str)) end +--~ } +--~ for k,v do +--~ print(string.tabtospace(t[k])) +--~ end function string.tabtospace(str,tab) -- we don't handle embedded newlines |