trim comment lines.

This commit is contained in:
feri 2022-02-24 17:20:57 +01:00 committed by Paul Schaub
parent 7a77d0847a
commit a1deb531a4
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ public final class EncryptionStream extends OutputStream {
String[] commentLines = options.getComment().split("\n");
for (String commentLine : commentLines) {
if (!commentLine.trim().isEmpty()) {
ArmorUtils.addCommentHeader(armorOutputStream, commentLine);
ArmorUtils.addCommentHeader(armorOutputStream, commentLine.trim());
}
}
}