Replace \r\n with system property line.separator

Implementing change as suggested by vjuranek
This commit is contained in:
Andrew Mann committed 2013-03-25 21:08:54 -05:00
1 parent 899f5aa417
commit 398fa74da0
1 file changed
+1 -1
@@ -52,7 +52,7 @@ class SecretRewriterTest {
def f = File.createTempFile("test", "xml", tmp.root)
f.text = before
sr.rewrite(f,null)
assert after.replaceAll("\r\n", "\n").trim()==f.text.replaceAll("\r\n", "\n").trim()
assert after.replaceAll(System.getProperty("line.separator"), "\n").trim()==f.text.replaceAll(System.getProperty("line.separator"), "\n").trim()
}
String encryptOld(str) {