IRV: update inspection description page

This commit is contained in:
Anna Kozlova
2012-09-13 22:26:23 +04:00
parent a9d8837b82
commit c0b80a328b
@@ -29,6 +29,7 @@ import com.intellij.openapi.command.CommandProcessor;
import com.intellij.openapi.editor.colors.EditorColorsManager;
import com.intellij.openapi.editor.colors.EditorColorsScheme;
import com.intellij.openapi.util.TextRange;
import com.intellij.openapi.util.text.StringUtil;
import com.intellij.openapi.vfs.VfsUtil;
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.openapi.vfs.VirtualFileManager;
@@ -440,14 +441,11 @@ class Browser extends JPanel {
if (description == null) {
description = underConstruction;
}
if (description.startsWith("<html>")) {
page.append(description.substring(description.indexOf("<html>") + 6));
} else {
page.append(underConstruction);
}
page.append(UIUtil.getHtmlBody(description));
page.append("</td></tr></table>");
myHTMLViewer.setText(page.toString());
setupStyle();
} finally {
myCurrentEntity = null;
}