And, can you share a (dummy) doc and/or tell us a bit more: is the screenshot from a table, a canvas column, or…?
I do quite a bit of text manipulation and I always keep the linebreaks. In some situations you have to add them back by using a spit(", ").join(linebreak()) type function, but that is generally when processing multiple rows or lists.