restore convert line separators

This commit is contained in:
Bas Leijdekkers
2013-01-22 16:14:00 +01:00
parent affe231b66
commit dc0d79df41
@@ -16,6 +16,7 @@
package org.jetbrains.generate.tostring.template;
import com.intellij.openapi.util.io.FileUtil;
import com.intellij.openapi.util.text.StringUtil;
import org.jetbrains.generate.tostring.exception.TemplateResourceException;
import java.io.BufferedInputStream;
@@ -67,6 +68,6 @@ public class TemplateResourceLocator {
*/
private static String readFile(String resource) throws IOException {
BufferedInputStream in = new BufferedInputStream(TemplateResourceLocator.class.getResourceAsStream(resource));
return FileUtil.loadTextAndClose(new InputStreamReader(in, "UTF-8"));
return StringUtil.convertLineSeparators(FileUtil.loadTextAndClose(new InputStreamReader(in, "UTF-8")));
}
}