RSS: Fix formating if newline character in an entry title. Closes GH-395.

This commit is contained in:
Valentin Lorentz 2013-05-22 14:03:38 +02:00
parent ba6e2fff6f
commit 0537166502

View File

@ -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: