aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gogs.go2
-rw-r--r--routers/repo/view.go2
-rw-r--r--templates/.VERSION2
3 files changed, 3 insertions, 3 deletions
diff --git a/gogs.go b/gogs.go
index 7cf99ee6..97d22146 100644
--- a/gogs.go
+++ b/gogs.go
@@ -16,7 +16,7 @@ import (
"github.com/gogits/gogs/pkg/setting"
)
-const APP_VER = "0.11.18.0608"
+const APP_VER = "0.11.19.0609"
func init() {
setting.AppVer = APP_VER
diff --git a/routers/repo/view.go b/routers/repo/view.go
index a4096ff9..1ea25d51 100644
--- a/routers/repo/view.go
+++ b/routers/repo/view.go
@@ -186,7 +186,7 @@ func renderFile(c *context.Context, entry *git.TreeEntry, treeLink, rawLink stri
var output bytes.Buffer
lines := strings.Split(fileContent, "\n")
for index, line := range lines {
- output.WriteString(fmt.Sprintf(`<li class="L%d" rel="L%d">%s</li>`, index+1, index+1, gotemplate.HTMLEscapeString(line)) + "\n")
+ output.WriteString(fmt.Sprintf(`<li class="L%d" rel="L%d">%s</li>`, index+1, index+1, gotemplate.HTMLEscapeString(strings.TrimRight(line, "\r"))) + "\n")
}
c.Data["FileContent"] = gotemplate.HTML(output.String())
diff --git a/templates/.VERSION b/templates/.VERSION
index d92fefef..95335b2f 100644
--- a/templates/.VERSION
+++ b/templates/.VERSION
@@ -1 +1 @@
-0.11.18.0608 \ No newline at end of file
+0.11.19.0609 \ No newline at end of file