Apply gofmt -s

This commit is contained in:
Bjørn Erik Pedersen
2016-02-06 12:29:13 +01:00
parent eebf00f702
commit 318a984526
6 changed files with 7 additions and 9 deletions

View File

@@ -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

View File

@@ -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()