Platform Independend Newlines
authorMarkus Bröker <mbroeker@largo.dyndns.tv>
Thu, 16 Apr 2009 12:51:15 +0200
changeset 83 220d76d0d672
parent 82 7ff8fc49cce4
child 84 f59d8a8e786f
Platform Independend Newlines Java uses %n for platform independend newlines \r\n on windows, \n on linux and so on... committer: Markus Bröker <mbroeker@largo.homelinux.org>
libConsole/Console.java
--- a/libConsole/Console.java
+++ b/libConsole/Console.java
@@ -3,10 +3,10 @@
     private static void help () {
         String p = System.getProperty ("java.library.path");
         String[] msg = p.split (":");
-        System.err.printf ("Console Error:\n");
+        System.err.printf ("Console Error:%n");
 
         for (int i = 0; i < msg.length; i++)
-            System.err.printf ("\t%s\n", msg[i]);
+            System.err.printf ("\t%s%n", msg[i]);
         System.exit (-1);
     };