X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.graph.compiler%2Fsrc%2Forg%2Fsimantics%2Fgraph%2Fcompiler%2Finternal%2FresourceFiles%2FResourceFile.java;fp=bundles%2Forg.simantics.graph.compiler%2Fsrc%2Forg%2Fsimantics%2Fgraph%2Fcompiler%2Finternal%2FresourceFiles%2FResourceFile.java;h=c7e1f22b14ccf58b173ab2b323cad58a4955346b;hp=25758343d59751d3dd2a5d28d2aac8d950485ebe;hb=2987cc1807e22e7b6856a8966f0d92b31c343415;hpb=74de2d9be56f36e925a0a5818f4b11a766812cff 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)