mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-27 22:09:53 +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
|
||||
|
@@ -69,7 +69,6 @@ func TestParseDefaultPygmentsArgs(t *testing.T) {
|
||||
{"", nil, nil, "style=foo,noclasses=false"},
|
||||
{"style=foo,noclasses=false", nil, nil, "style=override,noclasses=override"},
|
||||
{"style=foo,noclasses=false", "override", false, "style=override,noclasses=override"},
|
||||
|
||||
} {
|
||||
viper.Reset()
|
||||
|
||||
|
Reference in New Issue
Block a user