From 9a43fcb61cec9952ff80be7a0d7d27635186b9e5 Mon Sep 17 00:00:00 2001
From: Nikko Miu <nikko.miu@nikkomiu.com>
Date: Thu, 24 Mar 2016 20:48:52 -0500
Subject: [PATCH] Changed EscapePound function with string replace function

---
 modules/template/template.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/template/template.go b/modules/template/template.go
index 79b3f83565..c5379e188f 100644
--- a/modules/template/template.go
+++ b/modules/template/template.go
@@ -97,7 +97,7 @@ func NewFuncMap() []template.FuncMap {
 		"ActionContent2Commits": ActionContent2Commits,
 		"ToUtf8":                ToUtf8,
 		"EscapePound": func(str string) string {
-			return strings.Replace(strings.Replace(str, "%", "%25", -1), "#", "%23", -1)
+			return strings.NewReplacer("%", "%25", "#", "%23", " ", "%20").Replace(str)
 		},
 		"RenderCommitMessage": RenderCommitMessage,
 		"ThemeColorMetaTag": func() string {