mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-07 17:43:18 +02:00
Fixed PGP and S/MIME line normalization
This commit is contained in:
@@ -2146,7 +2146,7 @@ public class MessageHelper {
|
||||
|
||||
String c = parts[1]
|
||||
.replaceAll(" +$", "") // trim trailing spaces
|
||||
.replace("\\r?\\n", "\\r\\n"); // normalize new lines
|
||||
.replaceAll("\\r?\\n", "\r\n"); // normalize new lines
|
||||
try (OutputStream os = new FileOutputStream(file)) {
|
||||
os.write(c.getBytes());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user