From 0331b763ffa845f3cb7b9651ca70ab8b407eb67e Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 10 Oct 2019 10:32:47 +0100 Subject: refactor multi-line-to-line normalisation to utils.parse.line_normalise(), use it in rss.py closes #174 --- modules/rss.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/rss.py') diff --git a/modules/rss.py b/modules/rss.py index 159bdbf6..e18ef18b 100644 --- a/modules/rss.py +++ b/modules/rss.py @@ -18,7 +18,8 @@ class Module(ModuleManager.BaseModule): self.bot.get_setting("rss-interval", RSS_INTERVAL)) def _format_entry(self, server, feed_title, entry, shorten): - title = utils.http.strip_html(entry["title"]) + title = utils.parse.line_normalise(utils.http.strip_html( + entry["title"])) author = entry.get("author", None) author = " by %s" % author if author else "" -- cgit v1.3.1-10-gc9f91