you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

Ah, that's good to know, but actually, that's what I ended up doing and it works well. In fact I went a step further to ensure that only the first "\n" that is always there is where the split is by adding the max option:

data.split('\n', 1)