title: Why is Eclipse setting carriage returns(\r) when Carriage return+newline(\r\n) is supposed to be the value
body: <p>I've been trying to format some text using java on a windows virtual machine. Text from the file looks like: </p>
  
  <pre><code>      Local
  
        RPLSTRGKD2
  
        Rcpt/Disb
  </code></pre>
  
  <p>I'm trying to replace this text block with just </p>
  
  <p><code>Local Rcpt/Disb</code></p>
  
  <p>When searching for this block of text in the document originally started with just \n for newline however I switched to using \r\n when I found out that is a how it should be on windows.</p>
  
  <p>On further debugging through eclipse I found that the text was actually:</p>
  
  <pre><code>Local\r\r RPLSTRGKD2\r\r Rcpt/Disb
  </code></pre>
  
  <p>This code will be deployed to Unix server so I think I may need to change the \r to \n before deploying the code.</p>
  
  <p>I have 2 questions:</p>
  
  <ol>
  <li><p>Is there any explanatation for why \r is being used instead of \r\n which is expected on windows.</p></li>
  <li><p>Is there any way to deploy this to a Unix server where \n is supposed to be used instead of \r without having to change the code for deployment?</p></li>
  </ol>