I found the issue. The XSL that was specified for the Transformer included a call to the "normalize-space" function. See: http://www.xsltfunctions.com/xsl/fn_normalize-space.html
It was removing the newline and replacing it with a single space, as documented.