Java 6 doesn't have System.lineSeparator *facepalm*

This commit is contained in:
bdew committed 2015-02-26 14:55:18 +02:00
1 parent 1003aa1d6a
commit 0929ba9278
2 files changed
+4 -2

No files matched your search

+2 -2
View File
@@ -26,8 +26,8 @@ object ApiReporter extends ICrashCallable {
mod.getSource
else
mod.getSource.getName
)).mkString(System.lineSeparator())
)).mkString(Misc.lineSeparator)
}
override def getLabel = "List of loaded APIs"
override def call() = System.lineSeparator() + APIs
override def call() = Misc.lineSeparator + APIs
}
+2
View File
@@ -127,5 +127,7 @@ object Misc {
def getFluidColor(f: Fluid): Int =
if (f != null) getFluidColor(new FluidStack(f, 1)) else 0xFFFFFF
lazy val lineSeparator = System.getProperty("line.separator")
}