From ced6a64d1fac95af45be5a33213e278934d3f84d Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Thu, 26 Aug 2010 17:40:37 +0200 Subject: digg: cleanup whitespace in title --- data/rbot/plugins/digg.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'data/rbot') diff --git a/data/rbot/plugins/digg.rb b/data/rbot/plugins/digg.rb index 775c5569..dc0ea6c8 100644 --- a/data/rbot/plugins/digg.rb +++ b/data/rbot/plugins/digg.rb @@ -32,7 +32,7 @@ class DiggPlugin < Plugin max = 8 if max > 8 matches = Array.new doc.elements.each("rss/channel/item") {|e| - matches << [ e.elements["title"].text, + matches << [ e.elements["title"].text.strip, Time.parse(e.elements["pubDate"].text).strftime('%a @ %I:%M%p') ] done += 1 break if done >= max -- cgit v1.2.3