From 43f93c434c136ddb2ddbd3de293625be0648386b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Hannu=20Niemist=C3=B6?= Date: Mon, 6 Feb 2017 10:39:20 +0200 Subject: [PATCH] Replace crlf by lf in resource files generated by graph compiler. Change-Id: I502a5f0c6b9eb1f2ba257ab8dba57302263c658a --- .../graph/compiler/internal/resourceFiles/ResourceFile.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.47.1