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

val s = """abcd
efg"""
val s2 = s.replace("\n", "")
println(s2)

outputs

abcd
efg

in Eclipse,

efgd

(sic) from the command line, and

abcdefg

from the REPL (GREAT SUCCESS!)

String.format("%n") works, but is there anything shorter?

Edit
Report