From f4851e2cb90a17f086b5a36552d3445bac5f5c19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Thu, 1 Dec 2011 18:25:09 +0100 Subject: [PATCH] remove formatted metadata presented as html by zimbra (#1093) --- tabellio/icalimport/icalimport.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tabellio/icalimport/icalimport.py b/tabellio/icalimport/icalimport.py index 405f27c..1009be9 100644 --- a/tabellio/icalimport/icalimport.py +++ b/tabellio/icalimport/icalimport.py @@ -115,6 +115,9 @@ class IcalImport(BrowserView): # as it's safe to do. description = description.replace(' ', u'\xa0') if description: + if '*~*~*~*~*~*~*~*~*~*' in description: # zimbra lovely marker + description = '' + \ + description[description.index('*~*~*~*~*~*~*~*~*~*')+29:] event.text = RichTextValue(raw=description, mimeType='text/html', outputMimeType='text/x-html-safe')