]> Dogcows Code - chaz/vimcoder/blobdiff - src/com/dogcows/Util.java
just some whitespace cleanup
[chaz/vimcoder] / src / com / dogcows / Util.java
index 47fdd20d1cdef9c51d0d23ad90c7e0702ba59ab1..3253ae223c5515457949c2012fb6c658be05d5c9 100644 (file)
@@ -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"));
        }
 
        /**
This page took 0.025411 seconds and 4 git commands to generate.