summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-11-10 17:40:23 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2010-11-10 17:40:23 +0100
commit28ed89a19c2cc57652ffc2c38041ed684cf0a55e (patch)
tree95dc32f330bffd8dc60e0a31e1d0fb05d3da418b /modules
parente957f116c862bf910e44d7f669d8b9d631860880 (diff)
tracking: Replace <br/> with a space.
Diffstat (limited to 'modules')
-rw-r--r--modules/tracking.py2
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('&lt;', '<')
+ desc = last.find('{%s}Description' % ns).text.replace('&lt;', '<').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')