Hi, I’ve noticed that the csv values in the XML file that tiled uses are initialized (and finalized) with a ‘\ n’ symbol.
In this capture you can see:
If I put the content of the file into an online xml indenter, it does this:
It can be seen that the initial line break introduced by Tiled has been removed and it is now easier to obtain the values from an external program.
My question is why does Tiled introduce the initial line break ?.
This happens to me when I get an array with the string values from the CSV.
The first element () does not contain anything, it is empty, so I must use “-1” to discount that empty element.
So maybe it’s because of that ‘\ n’ symbol?