Commit bb198981 authored by Romain Bignon's avatar Romain Bignon

wrap to 78 chars the event description in notification mail

parent e649caa4
......@@ -105,7 +105,8 @@ class Event(object):
self.f, user=user, use_key=True)
mail = user.new_mail('event-notification.mail', 'Notification of event')
mail.vars['realname'] = user.realname
mail.vars['description'] = self.summary
summary = '\n'.join(wrap(self.summary.encode('utf-8'), 78))
mail.vars['description'] = summary
mail.vars['url'] = url
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment