From 45be7bae3930e1bd7db3eb0e4be3979dd9211fd5 Mon Sep 17 00:00:00 2001 From: Dmitry Batkovich Date: Mon, 14 Mar 2016 20:22:21 +0300 Subject: [PATCH] inspection tool window: unused declaration view more pretty --- .../codeInspection/deadCode/UnusedDeclarationPresentation.java | 1 + .../src/com/intellij/codeInspection/ex/HTMLComposerImpl.java | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/java/java-impl/src/com/intellij/codeInspection/deadCode/UnusedDeclarationPresentation.java b/java/java-impl/src/com/intellij/codeInspection/deadCode/UnusedDeclarationPresentation.java index 452658ed9933..adcba1e0c3f1 100644 --- a/java/java-impl/src/com/intellij/codeInspection/deadCode/UnusedDeclarationPresentation.java +++ b/java/java-impl/src/com/intellij/codeInspection/deadCode/UnusedDeclarationPresentation.java @@ -596,6 +596,7 @@ public class UnusedDeclarationPresentation extends DefaultInspectionToolPresenta css.addRule("p.problem-description-group {text-indent: " + JBUI.scale(9) + "px;font-weight:bold;}"); css.addRule("div.problem-description {margin-left: " + JBUI.scale(9) + "px;}"); css.addRule("ul {margin-left:" + JBUI.scale(10) + "px;text-indent: 0}"); + css.addRule("code {font-family:" + UIUtil.getLabelFont().getFamily() + "}"); final StringBuffer buf = new StringBuffer(); getComposer().compose(buf, entity, false); final String text = buf.toString(); diff --git a/platform/analysis-impl/src/com/intellij/codeInspection/ex/HTMLComposerImpl.java b/platform/analysis-impl/src/com/intellij/codeInspection/ex/HTMLComposerImpl.java index ee46fb909cb0..b5f18c246efc 100644 --- a/platform/analysis-impl/src/com/intellij/codeInspection/ex/HTMLComposerImpl.java +++ b/platform/analysis-impl/src/com/intellij/codeInspection/ex/HTMLComposerImpl.java @@ -273,7 +273,6 @@ public abstract class HTMLComposerImpl extends HTMLComposer { @Override public void appendElementOutReferences(StringBuffer buf, RefElement refElement) { if (refElement.getOutReferences().size() > 0) { - buf.append(BR); appendHeading(buf, InspectionsBundle.message("inspection.export.results.uses")); startList(buf); for (RefElement refCallee : refElement.getOutReferences()) {