From 0e155d9d5598ea5fbef494ddc45465c71091f321 Mon Sep 17 00:00:00 2001 From: Evgeny Fadeev Date: Tue, 22 May 2012 08:33:01 -0400 Subject: stripped leading empty lines in the email signature --- askbot/lamson_handlers.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/askbot/lamson_handlers.py b/askbot/lamson_handlers.py index e7928d52..dd7af597 100644 --- a/askbot/lamson_handlers.py +++ b/askbot/lamson_handlers.py @@ -229,8 +229,9 @@ def VALIDATE_EMAIL( tail.insert(0, line) #strip off the leading quoted lines, there could be one or two - while tail[0].startswith('>'): - line.pop(0) + #also strip empty lines + while tail[0].startswith('>') or tail[0].strip() == '': + tail.pop(0) signature = '\n'.join(tail) -- cgit v1.2.3-1-g7c22