From a3a934d06b7ff4540b3afb3371a70c51e043e65c Mon Sep 17 00:00:00 2001 From: Daniel Huigens Date: Thu, 21 Aug 2025 18:45:07 +0200 Subject: [PATCH] Update src/cleartext.js Co-authored-by: larabr --- src/cleartext.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cleartext.js b/src/cleartext.js index 834f92d4..23ac6e3b 100644 --- a/src/cleartext.js +++ b/src/cleartext.js @@ -36,7 +36,7 @@ export class CleartextMessage { * @param {Signature} signature - The detached signature or an empty signature for unsigned messages */ constructor(text, signature) { - // remove trailing whitespace from each line + // remove trailing whitespace from each line and normalize line endings to LF this.text = util.removeTrailingSpaces(text); if (signature && !(signature instanceof Signature)) { throw new Error('Invalid signature input');