From dd8e10009cd191850d22539fe539781ee13f25df Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Wed, 23 Jun 2010 11:26:45 +0200 Subject: [PATCH] Added simple workaround for linking --- flask_website/views/mailinglist.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/flask_website/views/mailinglist.py b/flask_website/views/mailinglist.py index fb41dd27..c24b7a87 100644 --- a/flask_website/views/mailinglist.py +++ b/flask_website/views/mailinglist.py @@ -27,10 +27,12 @@ class Mail(object): for line in split_lines_wrapping(self.text): if line == u'-- ': in_sig = True + # the extra space at the end is a simple workaround for + # urlize not to consume the as part of the URL if in_sig: - line = Markup(u'%s') % line + line = Markup(u'%s ') % line elif line.startswith('>'): - line = Markup(u'%s') % line + line = Markup(u'%s ') % line result.append(urlize(line)) return Markup(u'\n'.join(result))