Replace "\n" with " " in pretext