From: Hannu Niemistö Date: Mon, 6 Feb 2017 08:39:20 +0000 (+0200) Subject: Replace crlf by lf in resource files generated by graph compiler. X-Git-Tag: v1.28.0~85^2 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=2987cc1807e22e7b6856a8966f0d92b31c343415;p=simantics%2Fplatform.git Replace crlf by lf in resource files generated by graph compiler. Change-Id: I502a5f0c6b9eb1f2ba257ab8dba57302263c658a --- diff --git a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/resourceFiles/ResourceFile.java b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/resourceFiles/ResourceFile.java index 25758343d..c7e1f22b1 100644 --- a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/resourceFiles/ResourceFile.java +++ b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/resourceFiles/ResourceFile.java @@ -89,7 +89,7 @@ public class ResourceFile implements IResourceFile { public InputStream getContent() { StringWriter writer = new StringWriter(); write(writer); - return new ByteArrayInputStream(writer.toString().getBytes()); + return new ByteArrayInputStream(writer.toString().replace("\r\n", "\n").getBytes()); } /* (non-Javadoc)