From 0537166502d23472072f964030c202946f1219e4 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Wed, 22 May 2013 14:03:38 +0200 Subject: [PATCH] RSS: Fix formating if newline character in an entry title. Closes GH-395. --- plugins/RSS/plugin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/RSS/plugin.py b/plugins/RSS/plugin.py index 065cb26fd..0f8be9f0c 100644 --- a/plugins/RSS/plugin.py +++ b/plugins/RSS/plugin.py @@ -152,7 +152,8 @@ class RSS(callbacks.Plugin): else: for headline in headlines: newheadlines = [format('%s', h[0]) for h in headlines] - return newheadlines + return map(lambda x:x.replace('\n', ' ').replace('\r', ''), + newheadlines) def _newHeadlines(self, irc, channels, name, url): try: