add dots when shortened
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
d01fbb8ce8
commit
520f62eaa2
|
@ -78,7 +78,7 @@ func rssItemHandler(feed *gorss.Feed, ch *gorss.Channel, newitems []*gorss.Item)
|
|||
short := ""
|
||||
if len(ti) > 80 {
|
||||
runes := []rune(ti)
|
||||
short = string(runes[0:80])
|
||||
short = string(runes[0:80]) + " [...]"
|
||||
} else {
|
||||
short = ti
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue