Skip to content

Commit 76bb87c

Browse files
committed
do not screw up line endings when reading files
Now we don't add an extra \r for no reason when reading in user templates or problem files with DOS line endings. Fixes #21. Thanks @sen-7!
1 parent 4afcc19 commit 76bb87c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/com/dogcows/Util.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public static String readFile(File file) throws IOException
9898
reader.close();
9999
}
100100

101-
return text.toString().replaceAll("\n", System.getProperty("line.separator"));
101+
return text.toString();
102102
}
103103

104104
/**

0 commit comments

Comments
 (0)