\n");
+ html.append(String.format(Locale.ROOT, "
%n"));
if (content.getHtmlBody() != null && !content.getHtmlBody().trim().isEmpty()) {
String processedHtml =
processEmailHtmlBody(content.getHtmlBody(), content, customHtmlSanitizer);
@@ -187,17 +216,17 @@ public class EmlProcessingUtils {
} else {
html.append("
");
}
- html.append("
\n");
+ html.append(String.format(Locale.ROOT, "
%n"));
if (content.getAttachmentCount() > 0 || !content.getAttachments().isEmpty()) {
- appendAttachmentsSection(html, content, request, customHtmlSanitizer);
+ appendAttachmentsSection(html, content, request);
}
- html.append("\n