From 459e1ed34587932de6cedafc305454d94df388a7 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Sun, 22 Jul 2012 12:15:46 -0700 Subject: Handle Windows newlines in XEP-0027. Closes issue #184 --- sleekxmpp/plugins/xep_0027/gpg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sleekxmpp/plugins/xep_0027') diff --git a/sleekxmpp/plugins/xep_0027/gpg.py b/sleekxmpp/plugins/xep_0027/gpg.py index 9c6ca078..3ca9c36d 100644 --- a/sleekxmpp/plugins/xep_0027/gpg.py +++ b/sleekxmpp/plugins/xep_0027/gpg.py @@ -24,7 +24,7 @@ def _extract_data(data, kind): if not begin_headers and 'BEGIN PGP %s' % kind in line: begin_headers = True continue - if begin_headers and line == '': + if begin_headers and line.stripped() == '': begin_data = True continue if 'END PGP %s' % kind in line: -- cgit v1.2.3