Added simple workaround for linking

This commit is contained in:
Armin Ronacher 2010-06-23 11:26:45 +02:00
parent 6ac44a157e
commit dd8e10009c

View file

@ -27,6 +27,8 @@ class Mail(object):
for line in split_lines_wrapping(self.text): for line in split_lines_wrapping(self.text):
if line == u'-- ': if line == u'-- ':
in_sig = True in_sig = True
# the extra space at the end is a simple workaround for
# urlize not to consume the </span> as part of the URL
if in_sig: if in_sig:
line = Markup(u'<span class=sig>%s </span>') % line line = Markup(u'<span class=sig>%s </span>') % line
elif line.startswith('>'): elif line.startswith('>'):