diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2010-11-10 17:40:23 +0100 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2010-11-10 17:40:23 +0100 |
commit | 28ed89a19c2cc57652ffc2c38041ed684cf0a55e (patch) | |
tree | 95dc32f330bffd8dc60e0a31e1d0fb05d3da418b /modules | |
parent | e957f116c862bf910e44d7f669d8b9d631860880 (diff) |
tracking: Replace <br/> with a space.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/tracking.py | 2 |
1 files changed, 1 insertions, 1 deletions
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('<br/>', ' ') 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') |