X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fcom%2Fdogcows%2FUtil.java;h=3253ae223c5515457949c2012fb6c658be05d5c9;hb=5d17e009eff7a333349813221e7a0a1b2087d8d4;hp=47fdd20d1cdef9c51d0d23ad90c7e0702ba59ab1;hpb=28c8fae03b2294d6486233cd62f4d4d9d11603ca;p=chaz%2Fvimcoder diff --git a/src/com/dogcows/Util.java b/src/com/dogcows/Util.java index 47fdd20..3253ae2 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(); + return text.toString().replaceAll("\n", System.getProperty("line.separator")); } /** @@ -120,7 +120,7 @@ public abstract class Util try { byte[] buffer = new byte[4096]; - int numBytes = 0; + int numBytes = 0; while (0 < (numBytes = stream.read(buffer))) { text.append(new String(buffer, 0, numBytes)); @@ -132,7 +132,7 @@ public abstract class Util } } - return text.toString(); + return text.toString().replaceAll("\n", System.getProperty("line.separator")); } /**