For some unknown reason, the spool data retrieved using the REST Web API -
..............de/api/v1/jobs/JOBID/spool/
is returned "without" any newline characters in it. The spool file on the agent is perfectly formatted and no issues viewing directly on the agent.
The content-type requested is text/plain. Any clues as to what is missing in the api setup or parameter ?