mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-03 08:02:36 +09:00 
			
		
		
		
	Show second line by using >= 1 instead of > 1 (#4251)
Signed-off-by: Jonas Franz <info@jonasfranz.software>
This commit is contained in:
		
				
					committed by
					
						
						techknowlogick
					
				
			
			
				
	
			
			
			
						parent
						
							3aafa0400e
						
					
				
				
					commit
					85414d8b75
				
			@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user