mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
restore convert line separators
This commit is contained in:
+2
-1
@@ -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")));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user