1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-18 18:37:05 +00:00

fix line endings... | Prev Commit: 15feaf0237 [formerly dced7d472edabbab4f80c76051f13261928a8dea]?w=1

Former-commit-id: 286366ffb0958288821d0b34b6140e203400c682
This commit is contained in:
kataras
2017-11-02 06:44:40 +02:00
parent 15feaf0237
commit 42bc7dbad0
5 changed files with 98 additions and 11 deletions

View File

@@ -3,7 +3,6 @@ package main
import (
"io/ioutil"
"path/filepath"
"runtime"
"strings"
"testing"
@@ -35,9 +34,9 @@ func (r resource) loadFromBase(dir string) string {
panic(fullpath + " failed with error: " + err.Error())
}
result := string(b)
if runtime.GOOS != "windows" {
result = strings.Replace(result, "\n", "\r\n", -1)
}
// if runtime.GOOS != "windows" {
// result = strings.Replace(result, "\n", "\r\n", -1)
// }
return result
}