aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gogs.go2
-rw-r--r--pkg/template/template.go6
-rw-r--r--templates/.VERSION2
3 files changed, 5 insertions, 5 deletions
diff --git a/gogs.go b/gogs.go
index 3b5b795a..e652a41f 100644
--- a/gogs.go
+++ b/gogs.go
@@ -16,7 +16,7 @@ import (
"github.com/gogs/gogs/pkg/setting"
)
-const APP_VER = "0.11.50.0530"
+const APP_VER = "0.11.51.0602"
func init() {
setting.AppVer = APP_VER
diff --git a/pkg/template/template.go b/pkg/template/template.go
index 4ebc4007..7d0fb676 100644
--- a/pkg/template/template.go
+++ b/pkg/template/template.go
@@ -131,9 +131,9 @@ func Str2html(raw string) template.HTML {
return template.HTML(markup.Sanitize(raw))
}
-// Simple filter, converts newline symbols to <br>
-func NewLine2br(raw string) template.HTML {
- return template.HTML(strings.Replace(raw, "\n", "<br>", -1))
+// NewLine2br simply replaces "\n" to "<br>".
+func NewLine2br(raw string) string {
+ return strings.Replace(raw, "\n", "<br>", -1)
}
func List(l *list.List) chan interface{} {
diff --git a/templates/.VERSION b/templates/.VERSION
index cce047d4..3749018f 100644
--- a/templates/.VERSION
+++ b/templates/.VERSION
@@ -1 +1 @@
-0.11.50.0530 \ No newline at end of file
+0.11.51.0602 \ No newline at end of file