aboutsummaryrefslogtreecommitdiffstats
path: root/modules/templates
diff options
context:
space:
mode:
authorJonas Franz <info@jonasfranz.software>2018-06-15 16:07:48 +0200
committertechknowlogick <techknowlogick@users.noreply.github.com>2018-06-15 10:07:48 -0400
commit85414d8b754639cae1a9c361bbdc0714f06b87c1 (patch)
treee9204ae45d508f8d8ba4142a8c3a7cd0ac27cf65 /modules/templates
parent3aafa0400ea3e003baed1e8c8bd1f986730d0253 (diff)
downloadgitea-85414d8b754639cae1a9c361bbdc0714f06b87c1.tar.gz
gitea-85414d8b754639cae1a9c361bbdc0714f06b87c1.zip
Show second line by using >= 1 instead of > 1 (#4251)
Signed-off-by: Jonas Franz <info@jonasfranz.software>
Diffstat (limited to 'modules/templates')
-rw-r--r--modules/templates/helper.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/templates/helper.go b/modules/templates/helper.go
index bf5c0130b6..b6c835ad44 100644
--- a/modules/templates/helper.go
+++ b/modules/templates/helper.go
@@ -323,7 +323,7 @@ func RenderCommitBody(msg, urlPrefix string, metas map[string]string) template.H
// IsMultilineCommitMessage checks to see if a commit message contains multiple lines.
func IsMultilineCommitMessage(msg string) bool {
- return strings.Count(strings.TrimSpace(msg), "\n") > 1
+ return strings.Count(strings.TrimSpace(msg), "\n") >= 1
}
// Actioner describes an action