The Unified and Autonomous Development Platform
Minor improvement of inbox mail handling
Robin Shen7d0f9a2f07fc
diff --git a/server-core/src/main/java/io/onedev/server/notification/DefaultMailManager.java b/server-core/src/main/java/io/onedev/server/notification/DefaultMailManager.javaindex 5b20b0a3bf..c8c7877943 100644--- a/server-core/src/main/java/io/onedev/server/notification/DefaultMailManager.java+++ b/server-core/src/main/java/io/onedev/server/notification/DefaultMailManager.java@@ -494,6 +494,7 @@ public class DefaultMailManager implements MailManager {Document document = HtmlUtils.parse(content);document.select(".gmail_quote").remove();+ document.outputSettings().prettyPrint(false);Element quotedSenderElement = null;for (Element element: document.getElementsContainingOwnText(quotedSender)) {@@ -899,7 +900,7 @@ public class DefaultMailManager implements MailManager {List<String> markdowns = new ArrayList<>();for (Attachment attachment: attachments.nonIdentifiable)markdowns.add(attachment.getMarkdown());- text += "\n" + Joiner.on(" • ").join(markdowns);+ text += "\n\n" + Joiner.on(" • ").join(markdowns);}return text;}