删除Google Scripts sendEmail()中的缩进



当我使用以下函数在谷歌脚本中发送电子邮件时,第二行有一个我不想要的缩进。

功能如下:

function AppealsListContact() {
const recipients = 'ksparks@eastern.edu' //,cde@xyz.com'
const sub = 'Pending UEPCC Appeals'
const line1 = 'Dear EU Colleague:'
const line2 = ''
const line3 = 'You have items waiting for you attention in the appeals process. Please attend to these as soon as possible.'
const body = `${line1}
${line2}
${line3}`
MailApp.sendEmail(recipients,sub,body)
}

这是由此产生的电子邮件:

"Dear EU Colleague:
You have items waiting for you attention in the appeals 
process. Please attend to these as soon as possible."

为什么在消息之前有缩进空间("You have items"(,我如何删除它?

感谢

删除缩进

function AppealsListContact() {
const recipients = 'jimesteban@jimesteban.com';
const sub = 'Pending UEPCC Appeals';
const line1 = 'Dear EU Colleague:';
const line2 = ''
const line3 = 'You have items waiting for you attention in the appeals process. Please attend to these as soon as possible.';
const body = `${line1}n${line2}${line3}`;
MailApp.sendEmail(recipients, sub, body)
}

最新更新