diff options
author | Jonas Franz <info@jonasfranz.software> | 2018-06-15 16:07:48 +0200 |
---|---|---|
committer | techknowlogick <techknowlogick@users.noreply.github.com> | 2018-06-15 10:07:48 -0400 |
commit | 85414d8b754639cae1a9c361bbdc0714f06b87c1 (patch) | |
tree | e9204ae45d508f8d8ba4142a8c3a7cd0ac27cf65 /modules/templates | |
parent | 3aafa0400ea3e003baed1e8c8bd1f986730d0253 (diff) | |
download | gitea-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.go | 2 |
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 |