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:
parent
67f123cf5e
commit
f37588d11e
1 changed files with 1 additions and 1 deletions
|
@ -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$
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue