Fixed incorrectly escaped line breaks; fixed bad loop check

This commit is contained in:
dragonmacher 2021-01-05 13:08:25 -05:00
parent 1539318b59
commit 6e6f2641e2

View file

@ -29,6 +29,7 @@ import docking.actions.KeyBindingUtils;
import ghidra.framework.plugintool.PluginConfigurationModel;
import ghidra.framework.plugintool.util.PluginDescription;
import ghidra.framework.plugintool.util.PluginStatus;
import ghidra.util.HTMLUtilities;
/**
* Panel that contains a JTextPane to show plugin description information.
@ -103,7 +104,7 @@ class PluginDetailsPanel extends AbstractDetailsPanel {
insertHTMLString(buffer, dependencies.get(i).getPluginClass().getName(),
dependencyAttrSet);
if (i < dependencies.size() - 1) {
insertHTMLString(buffer, "<BR>", dependencyAttrSet);
buffer.append(HTMLUtilities.BR);
}
}
insertHTMLLine(buffer, "", titleAttrSet); // add a newline
@ -122,8 +123,8 @@ class PluginDetailsPanel extends AbstractDetailsPanel {
else {
for (int i = 0; i < servicesRequired.size(); i++) {
insertHTMLString(buffer, servicesRequired.get(i).getName(), dependencyAttrSet);
if (i < dependencies.size() - 1) {
insertHTMLString(buffer, "<BR>", dependencyAttrSet);
if (i < servicesRequired.size() - 1) {
buffer.append(HTMLUtilities.BR);
}
}
insertHTMLLine(buffer, "", titleAttrSet); // add a newline
@ -136,7 +137,7 @@ class PluginDetailsPanel extends AbstractDetailsPanel {
//
//
// Optional: Actions loaded by this plugin
//
//
addLoadedActionsContent(buffer, descriptor);
buffer.append("</TABLE>");