From 76bb87cdcb7d155f97e02e3fb461c57da18f5724 Mon Sep 17 00:00:00 2001 From: Charles McGarvey Date: Sun, 5 Mar 2017 10:09:30 -0700 Subject: [PATCH] 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! --- src/com/dogcows/Util.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } /** -- 2.45.2