mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-14 20:33:59 +02:00
Apply gofmt -s
This commit is contained in:
@@ -426,7 +426,7 @@ func TruncateWordsByRune(words []string, max int) (string, bool) {
|
||||
} else if count+runeCount < max {
|
||||
count += runeCount
|
||||
} else {
|
||||
for ri, _ := range word {
|
||||
for ri := range word {
|
||||
if count >= max {
|
||||
truncatedWords := append(words[:index], word[:ri])
|
||||
return strings.Join(truncatedWords, " "), true
|
||||
|
Reference in New Issue
Block a user