Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 76bb87c

Browse files
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

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /