Improved formatting of ascii texts.

This commit is contained in:
hneemann 2016-10-30 20:32:38 +01:00
parent 3a79819bfc
commit 1bb068300e

View File

@ -116,7 +116,10 @@ public class ElementHelpDialog extends JDialog {
}
public void add(String name, String description) {
items.add(new Item(" " + name + ": ", description));
if (description==null || description.length()==0 || name.equals(description))
items.add(new Item(" " + name, ""));
else
items.add(new Item(" " + name + ": ", description));
}
public void create(StringBuilder sb) {