diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-05-22 08:33:01 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-05-22 08:33:01 -0400 |
commit | 0e155d9d5598ea5fbef494ddc45465c71091f321 (patch) | |
tree | 5e78c58affb8e4d05418e3aa6ee3e1ba34afaec1 | |
parent | b6df6c6ef176ccfd2d2b4e8b0526e93b67d2ebd0 (diff) | |
download | askbot-0e155d9d5598ea5fbef494ddc45465c71091f321.tar.gz askbot-0e155d9d5598ea5fbef494ddc45465c71091f321.tar.bz2 askbot-0e155d9d5598ea5fbef494ddc45465c71091f321.zip |
stripped leading empty lines in the email signature
-rw-r--r-- | askbot/lamson_handlers.py | 5 |
1 files 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) |