Skip to content

Commit

Permalink
RSS: Fix formating if newline character in an entry title. Closes GH-395
Browse files Browse the repository at this point in the history
.
  • Loading branch information
progval committed May 22, 2013
1 parent ba6e2ff commit 0537166
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/RSS/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ def buildHeadlines(self, headlines, channel, config='announce.showLinks'):
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:
Expand Down

0 comments on commit 0537166

Please sign in to comment.