This looks like a transcription feed. It looks like your sending system is using repeating fields to signify a newline. Wherever you see a ‘~’ is where the sending system says the new line is in the transcription. Is the problem that the receiving system isn’t displaying it that way? If so you’ll need to find out what the receiving system uses to denote a new line in the transcription and swap all the ‘~’ with that character. If they won’t help you try \.br\