Handle extra newline chars in tsp files