title: Why is C#.net removing my newline characters when I do a replace, and how can I stop it?
body: <p>I have a textarea saving to a database that I'm using to send as the body of an email.</p>
  
  <p>I allow tokens to be used as placeholders for information pertaining to that message.</p>
  
  <p>If I don't touch the placeholders at all the email sends just fine with the line breaks exactly as they are in the textbox (the email is being sent in plain text).</p>
  
  <p>However, when I start using the replace function, the new line characters start disappearing and all the lines get pushed together.</p>
  
  <p>For example.</p>
  
  <pre><code>Body.Replace("%procedure%", CurrentOrder.Description);
  </code></pre>
  
  <p>Will replace the text %procedure%, but will also remove the newline at the end of the line.  Even if the newline isn't directly after the text being replaced.</p>
  
  <p>Any ideas?</p>
  
  <p>edit:</p>
  
  <p>For now, I'm just replacing "\n" with "<code>&lt;br /&gt;</code>" and sending the email as HTML.  I would rather keep it as plain text as I don't have control over the recipients at all.</p>
  
  <p><strong>EDIT 2:</strong>  It appears to be an issue with outlook itself, not the email.  I just viewed the exact same email in gmail, and the format was correct.</p>