mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
RSS: Fix formating if newline character in an entry title. Closes GH-395.
This commit is contained in:
parent
ba6e2fff6f
commit
0537166502
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user