1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-06 01:06:01 +02:00

Fix JUnit failure on windows.

This commit is contained in:
Markus Schorn 2010-10-13 08:09:17 +00:00
parent 67f123cf5e
commit f37588d11e

View file

@ -15,6 +15,6 @@ public class TestHelper {
public static String unifyNewLines(String code) {
String replacement = System.getProperty("line.separator"); //$NON-NLS-1$
return code.replaceAll("(\n)|(\r\n)", replacement); //$NON-NLS-1$
return code.replaceAll("(\n)|(\r\n)", replacement).trim(); //$NON-NLS-1$
}
}