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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user