Skip to content

Commit

Permalink
Using System.lineSeparator insted of \\n
Browse files Browse the repository at this point in the history
  • Loading branch information
tesonep committed Jul 25, 2016
1 parent ffd148e commit 33b53ea
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ object assert {
method fail(message) native

}
'''.toString.replaceAll('\n', ' ').replaceAll('\\s+', ' ').trim()
'''.toString.replaceAll(System.lineSeparator, ' ').replaceAll('\\s+', ' ').trim()
}
}
Expand All @@ -359,7 +359,7 @@ class PostEvaluationTestDebugger extends XDebuggerOff {
def store(EObject element) {
if (logSession)
println('"' + element.sourceCode.replaceAll('\n', ' ').replaceAll('\\s+', ' ').trim() + '",')
println('"' + element.sourceCode.replaceAll(System.lineSeparator, ' ').replaceAll('\\s+', ' ').trim() + '",')
evaluated += (element -> interpreter.stack.peek.clone)
}
Expand Down

0 comments on commit 33b53ea

Please sign in to comment.