I have an apps script to automate some emails and want to send a body from a template. I figured I could store the template as a google doc, fetch it, and send it in the script. I have something like this:
var doc = DocumentApp.openById("DocumentID");
MailApp.sendEmail("toEmail", "fromEmail", "TPS report status", doc.getBody().getText());
This does work, except that the email body has new lines inserted in seemingly random areas, although it does retain the new paragraphs that were part of the original document. It's not as obvious in the image, but the red circles are where there are line breaks for something that should be one line. It's very obvious when viewed via gmail app.