From 28ed89a19c2cc57652ffc2c38041ed684cf0a55e Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Wed, 10 Nov 2010 17:40:23 +0100 Subject: tracking: Replace
with a space. --- modules/tracking.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/tracking.py b/modules/tracking.py index b2a8900..81c4fd1 100644 --- a/modules/tracking.py +++ b/modules/tracking.py @@ -112,7 +112,7 @@ class Module: if not len(eventset): continue last = eventset[0] - desc = last.find('{%s}Description' % ns).text.replace('<', '<') + desc = last.find('{%s}Description' % ns).text.replace('<', '<').replace('
', ' ') desc = re.sub(r'<[^>]*?>', '', desc).encode('utf8') isodate = last.find('{%s}OccuredAtIsoDateTime' % ns).text[:-10] isodate = datetime.datetime.strptime(isodate, '%Y-%m-%dT%H:%M:%S') -- cgit v1.2.3