remove extra spaces

This commit is contained in:
Sanjana Rajan 2017-07-08 13:26:20 +02:00
parent 95c5e3af01
commit e53cbe8417

View File

@ -45,7 +45,6 @@ export function CleartextMessage(text, signature) {
}
// normalize EOL to canonical form <CR><LF>
this.text = text.replace(/\r/g, '').replace(/[\t ]+\n/g, "\n").replace(/\n/g,"\r\n");
if (signature && !(signature instanceof sigModule.Signature)) {
throw new Error('Invalid signature input');
}
@ -164,7 +163,6 @@ CleartextMessage.prototype.armor = function() {
text: this.text,
data: this.signature.packets.write()
};
return armor.encode(enums.armor.signed, body);
};