This is assuming the tile rows in the CSV format are separated by newlines, but again there is no such guarantee. Tiled Qt happens to do it only for increasing readability. You should write the code in a way that doesn't rely on it, for example by doing `csvText.split(",[ |\\n|\\r]*")` (haven't checked whether this one works, though).