aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author无闻 <u@gogs.io>2015-08-25 03:13:30 +0800
committer无闻 <u@gogs.io>2015-08-25 03:13:30 +0800
commit90f5b8edafc3109c670291df2b04c7529044fa69 (patch)
treed539e4941c9a025d18f3d99db2dbb732812e9a3e
parent3a32cbee440bbba034ff68d399b3620fa8679253 (diff)
parente6917b6be87ec5308c5a513cbee7ad4ba41ab00f (diff)
downloadgitea-90f5b8edafc3109c670291df2b04c7529044fa69.tar.gz
gitea-90f5b8edafc3109c670291df2b04c7529044fa69.zip
Merge pull request #1534 from Naxiz/master
Fix missing space in issue emails subject
-rw-r--r--modules/mailer/mail.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/mailer/mail.go b/modules/mailer/mail.go
index 195f3d3ed7..9a38b57d26 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<br>-<br> <a href=\"%s%s/%s/issues/%d\">View it on Gogs</a>.",
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)