corona-styled-textwrap
corona-styled-textwrap copied to clipboard
tonumber is not working
I am using Corona version 2439, while parsing the html, I got an error saying cant compare nil with number.
The error is because tonumber in line entities.lua:25 is returning nil.
After change the line number 24 to this: a = a:gsub("x", "") local n, r, u = tonumber(a, 16)
it works.
Aparrently I have no idea why to number cannot process with "x" in there.
Gosh, just saw this. Haven't had this problem. the HTML code isn't my creation.