]> Dogcows Code - chaz/vimcoder/commitdiff
do not screw up line endings when reading files master
authorCharles McGarvey <chazmcgarvey@brokenzipper.com>
Sun, 5 Mar 2017 17:09:30 +0000 (10:09 -0700)
committerCharles McGarvey <chazmcgarvey@brokenzipper.com>
Sun, 5 Mar 2017 17:09:30 +0000 (10:09 -0700)
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

index 3276bd79661f5a5cbaa80e9f6ea2c0f4aa34bd98..ceb26a93f42c4940099a0dfec1c6a9360238902b 100644 (file)
@@ -98,7 +98,7 @@ public abstract class Util
             reader.close();
         }
 
-        return text.toString().replaceAll("\n", System.getProperty("line.separator"));
+        return text.toString();
     }
 
     /**
This page took 0.032135 seconds and 4 git commands to generate.