From: Hannu Niemistö Date: Mon, 6 Feb 2017 09:04:48 +0000 (+0200) Subject: Merge "Replace crlf by lf in resource files generated by graph compiler." X-Git-Tag: v1.28.0~85 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=32db32b8c6f1f0feba6905c3c68579f6b5891821;hp=4cfeb52c28469fdfb6d8b07bac43394bac684e7f;p=simantics%2Fplatform.git Merge "Replace crlf by lf in resource files generated by graph compiler." --- 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)