title: Alternative or fix for "\n" in google script
body: <p>First time I put up a question here (been searching before posting) so please bear with possible mistakes done on my end.</p>
  
  <p>To the problem:
  I am currently working on a website with google sites. Made some forms there and am adding a script to those forms to get the info input there emailed away once the form is submitted and saved on the spreadsheet, which works just fine, but the message inside the email that arrives is pretty messed up.</p>
  
  <p>All the "\n" expressions in the code get simply ignored.
  I got the base for the code from www.labnol.org and just edited it a little.</p>
  
  <p>For the start, the code:</p>
  
  <pre><code>    function sendFormByEmail(e) 
  {    
    //I took the two mail addresses out here, but they are working in the original
  
    var email = "first mail address";
    var email2 = "second mail address";
  
    var subject = "New Announce your visit form submitted";  
  
  
    var s = SpreadsheetApp.getActiveSheet(); 
    var headers = s.getRange(1,1,1,s.getLastColumn()).getValues()[0]; 
    var message = "A new 'Announce your visit' form has been submitted on the website: \n\n" + "\n\n";   
  
    for(var i in headers) {
      message = message + "\n \n";
      message += headers[i] + ' = '+ e.namedValues[headers[i]].toString() + "\n\n";
    }
  
    var senderEmail = e.namedValues[headers[6]].toString();
  
  
    MailApp.sendEmail(email, senderEmail, subject, message);
    MailApp.sendEmail(email2, senderEmail, subject, message);
  
  }
  </code></pre>
  
  <p>As you can see, I have been trying around a lot to place the \n in different places as alternative, though it gets ignored no matter where I place it.</p>
  
  <p>the original loop looked like this:</p>
  
  <pre><code>  for(var i in headers)
      message += headers[i] + ' = '+ e.namedValues[headers[i]].toString() + "\n\n";
  </code></pre>
  
  <p>Before I did some modifications to the code it worked just fine. But even though I didn't touch these lines, nor any of the other parts of the code that contribute to getting the message, the \n stopped working.
  I kept trying to fix it (as the messed up \n placing above shows), but without success.</p>
  
  <p>So now I am trying to find a way to fix them, or at least a work-around and hoped that any of you might know what is going on with the \n's or how to get them working again.</p>
  
  <p>Thanks in advance.</p>
  
  <p>ps: if you need any more information on it, just let me know</p>