From 520f62eaa209d5df08d95f78c0b4901c5cc08611 Mon Sep 17 00:00:00 2001 From: an Date: Wed, 21 Aug 2019 18:30:40 +0200 Subject: [PATCH] add dots when shortened --- modules/rss.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/rss.go b/modules/rss.go index 2aaad5d..6944d96 100644 --- a/modules/rss.go +++ b/modules/rss.go @@ -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 }