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 := ""
|
short := ""
|
||||||
if len(ti) > 80 {
|
if len(ti) > 80 {
|
||||||
runes := []rune(ti)
|
runes := []rune(ti)
|
||||||
short = string(runes[0:80])
|
short = string(runes[0:80]) + " [...]"
|
||||||
} else {
|
} else {
|
||||||
short = ti
|
short = ti
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue