]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Replace crlf by lf in resource files generated by graph compiler.
authorHannu Niemistö <hannu.niemisto@semantum.fi>
Mon, 6 Feb 2017 08:39:20 +0000 (10:39 +0200)
committerjsimomaa <jani.simomaa@gmail.com>
Fri, 28 Apr 2017 13:09:03 +0000 (16:09 +0300)
Change-Id: I502a5f0c6b9eb1f2ba257ab8dba57302263c658a

bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/resourceFiles/ResourceFile.java

index 25758343d59751d3dd2a5d28d2aac8d950485ebe..c7e1f22b14ccf58b173ab2b323cad58a4955346b 100644 (file)
@@ -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)