From 78b571e0de072c6666ded5d28f8833e07a79f426 Mon Sep 17 00:00:00 2001 From: Ian Weller Date: Wed, 6 Aug 2008 00:19:04 -0500 Subject: [PATCH] Debugging --- plugin.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugin.py b/plugin.py index 9a22e01..b555f64 100644 --- a/plugin.py +++ b/plugin.py @@ -48,8 +48,9 @@ class Shipping(callbacks.Plugin): dom = minidom.parseString(rss) item = dom.getElementsByTagName('item')[0] description = item.getElementsByTagName('description')[0] - print description.firstChild.data - irc.reply(len(description.firstChild.data)) + data = description.firstChild.data + data = re.sub('\s\s+', ' ', data) + print data ups = wrap(ups, ['text']) -- 2.11.4.GIT