From: Charles McGarvey Date: Sun, 5 Mar 2017 17:09:30 +0000 (-0700) Subject: do not screw up line endings when reading files X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=HEAD;p=chaz%2Fvimcoder 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! --- diff --git a/src/com/dogcows/Util.java b/src/com/dogcows/Util.java index 3276bd7..ceb26a9 100644 --- a/src/com/dogcows/Util.java +++ b/src/com/dogcows/Util.java @@ -98,7 +98,7 @@ public abstract class Util reader.close(); } - return text.toString().replaceAll("\n", System.getProperty("line.separator")); + return text.toString(); } /**