corona-styled-textwrap icon indicating copy to clipboard operation
corona-styled-textwrap copied to clipboard

tonumber is not working

Open vhanded opened this issue 10 years ago • 1 comments

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.

vhanded avatar Oct 02 '14 09:10 vhanded

Gosh, just saw this. Haven't had this problem. the HTML code isn't my creation.

mimetic avatar Oct 05 '17 17:10 mimetic