title: New line character in Scala
body: <p>Is there a shorthand for a new line character in Scala? In Java (on Windows) I usually just use "\n", but that doesn't seem to work in Scala - specifically</p>
  
  <pre><code>val s = """abcd
  efg"""
  val s2 = s.replace("\n", "")
  println(s2)
  </code></pre>
  
  <p>outputs</p>
  
  <pre><code>abcd
  efg
  </code></pre>
  
  <p>in Eclipse,</p>
  
  <pre><code>efgd
  </code></pre>
  
  <p>(sic) from the command line, and </p>
  
  <pre><code>abcdefg
  </code></pre>
  
  <p>from the REPL (GREAT SUCCESS!)</p>
  
  <p><code>String.format("%n")</code> works, but is there anything shorter?</p>