Handle Windows newlines in XEP-0027.

Closes issue #184
This commit is contained in:
Lance Stout 2012-07-22 12:15:46 -07:00
parent 6680c244f5
commit 459e1ed345

View file

@ -24,7 +24,7 @@ def _extract_data(data, kind):
if not begin_headers and 'BEGIN PGP %s' % kind in line: if not begin_headers and 'BEGIN PGP %s' % kind in line:
begin_headers = True begin_headers = True
continue continue
if begin_headers and line == '': if begin_headers and line.stripped() == '':
begin_data = True begin_data = True
continue continue
if 'END PGP %s' % kind in line: if 'END PGP %s' % kind in line: