-->
Page 2 of 2

Re: 0.9.5 build 20150127 Lua 5.1.4 files broken

PostPosted: Tue Jan 27, 2015 9:58 am
by picstart
NodeMCU 0.9.5 build 20150127 powered by Lua 5.1.4
> for k,v in pairs(file.list()) do l = string.format("%-15s",k) print(l.." "..v.." bytes") end

15s 0 bytes
15s 639 bytes
>


Latest prebuild partial fix did not fix the above
last reliable version is NodeMCU 0.9.5 build 20150123 powered by Lua 5.1.4

Re: 0.9.5 build 20150127 Lua 5.1.4 files broken

PostPosted: Tue Jan 27, 2015 10:16 am
by Hans174
Works! Thank you.

Code: Select all
> = string.format("%i,", 100)
100,

> t=13
> = string.format("%i,",t)
13,

> i = 7
> t={}
> t[i]=12
> = string.format("%i,",t[i])
12,
>


Re: 0.9.5 build 20150127 Lua 5.1.4 files broken

PostPosted: Wed Jan 28, 2015 4:31 am
by Hans174
The minus sign for left-justified don't work.

Code: Select all
-- left-justified
> =string.format("%-15s",  "Hallo")
15s
>
-- right-justified
> =string.format("%15s", "Hallo")
          Hallo
>