DeArmor: remove whitespace of blank line

This commit is contained in:
Thomas Oberndörfer
2013-06-25 16:25:10 +02:00
parent aa8a7f94f1
commit 5898cea4de
3 changed files with 621 additions and 617 deletions

View File

@@ -25,6 +25,8 @@
*/
function openpgp_encoding_deArmor(text) {
text = text.replace(/\r/g, '')
// remove whitespace of blank line to allow later split at \n\n
text = text.replace(/\n\s+\n/, '\n\n');
var type = openpgp_encoding_get_type(text);