Literal strings Crown Moon

2

I'm kind of lost with \t . In the console, it works and in the simulator it is ignored. If anyone knows of a possible solution.

local myText = display.newText("a\tb", 200, 100, native.systemFont, 16)
print(myText.text)

Or:

a = "oi"
b = "teste"
local myText = display.newText(a.."\t"..b, 200, 100, native.systemFont, 16)
print(myText.text)
    
asked by anonymous 30.03.2018 / 01:45

0 answers