Fix maven artifacts download notification logging IDEA-204514

Numbered list is not rendered in Event Log toolwindow, resulting in list items without spaces between them.
This commit is contained in:
Nikita Skvortsov
2018-12-20 16:55:49 +03:00
parent 08edcf6a79
commit 5e303b5c73
@@ -340,13 +340,10 @@ public class JarRepositoryManager {
private static void notifyArtifactsDownloaded(Project project, Collection<OrderRoot> roots) {
final StringBuilder sb = new StringBuilder();
final String title = "The following files were downloaded:";
sb.append("<ol>");
for (OrderRoot root : roots) {
sb.append("<li>");
sb.append("<p/>");
sb.append(root.getFile().getName());
sb.append("</li>");
}
sb.append("</ol>");
Notifications.Bus.notify(new Notification("Repository", title, sb.toString(), NotificationType.INFORMATION), project);
}