From ca53b16a89f126938b8102a59be79f66ce54bec2 Mon Sep 17 00:00:00 2001 From: Martin Dosch Date: Fri, 31 May 2019 12:36:30 +0200 Subject: [PATCH] Added linebreak before attaching the URL. --- README.md | 2 +- getarticles.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 428413f..f545773 100644 --- a/README.md +++ b/README.md @@ -69,4 +69,4 @@ the bot. If you don't want additional noise in the MUC you can set `Quiet` to disable bot queries (e.g. *contact*) in the MUC (queries per -private message are still available). \ No newline at end of file +private message are still available). diff --git a/getarticles.go b/getarticles.go index e740ab3..e8b9eca 100644 --- a/getarticles.go +++ b/getarticles.go @@ -269,7 +269,7 @@ func getArticles(feedURL string, max int, noExcerpt bool, filter []string) (stri description = strings.Replace(description, article.Link, cleanURL, -1) output = output + feed.Title + ": *" + article.Title + "*\n\n" + description } else { - output = output + feed.Title + ": *" + article.Title + "*\n\n" + description + cleanURL + output = output + feed.Title + ": *" + article.Title + "*\n\n" + description + "\n" + cleanURL } }