]> source.dussan.org Git - gitea.git/commitdiff
Fix missing space in issue emails subject
authorLouis Matthijssen <louis@u5r.nl>
Mon, 24 Aug 2015 19:05:20 +0000 (21:05 +0200)
committerLouis Matthijssen <louis@u5r.nl>
Mon, 24 Aug 2015 19:05:20 +0000 (21:05 +0200)
modules/mailer/mail.go

index 195f3d3ed7eb4c0c8b81e202a88ef0e634cf9f25..9a38b57d2641849603c92702a56ab01c793d9b85 100644 (file)
@@ -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)