From e6917b6be87ec5308c5a513cbee7ad4ba41ab00f Mon Sep 17 00:00:00 2001 From: Louis Matthijssen Date: Mon, 24 Aug 2015 21:05:20 +0200 Subject: [PATCH] Fix missing space in issue emails subject --- modules/mailer/mail.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/mailer/mail.go b/modules/mailer/mail.go index 195f3d3ed7e..9a38b57d264 100644 --- a/modules/mailer/mail.go +++ b/modules/mailer/mail.go @@ -178,7 +178,7 @@ func SendIssueNotifyMail(u, owner *models.User, repo *models.Repository, issue * return tos, nil } - subject := fmt.Sprintf("[%s] %s(#%d)", repo.Name, issue.Name, issue.Index) + subject := fmt.Sprintf("[%s] %s (#%d)", repo.Name, issue.Name, issue.Index) content := fmt.Sprintf("%s
-
View it on Gogs.", base.RenderSpecialLink([]byte(issue.Content), owner.Name+"/"+repo.Name), setting.AppUrl, owner.Name, repo.Name, issue.Index) @@ -196,7 +196,7 @@ func SendIssueMentionMail(r macaron.Render, u, owner *models.User, return nil } - subject := fmt.Sprintf("[%s] %s(#%d)", repo.Name, issue.Name, issue.Index) + subject := fmt.Sprintf("[%s] %s (#%d)", repo.Name, issue.Name, issue.Index) data := GetMailTmplData(nil) data["IssueLink"] = fmt.Sprintf("%s/%s/issues/%d", owner.Name, repo.Name, issue.Index)