Skip to content

Commit ac97987

Browse files
committed
Fixed SPA Tooltip HTML Wrapping in PersonViewPanel
Removed the unnecessary "<html>" tags from tooltip descriptions in `PersonViewPanel`.
1 parent f4ebf81 commit ac97987

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

MekHQ/src/mekhq/gui/view/PersonViewPanel.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1449,9 +1449,8 @@ private JPanel fillSkills() {
14491449
IOption option = i.nextElement();
14501450
if (option.booleanValue()) {
14511451
JLabel lblAbility2 = new JLabel(Utilities.getOptionDisplayName(option));
1452-
lblAbility2.setToolTipText(wordWrap("<html>"
1453-
+ option.getDescription().replaceAll("\\n", "<br>")
1454-
+ "</html>"));
1452+
lblAbility2.setToolTipText(wordWrap(
1453+
option.getDescription().replaceAll("\\n", "<br>")));
14551454
lblAbility2.setName("lblAbility2");
14561455
lblAbility2.getAccessibleContext().getAccessibleRelationSet().add(
14571456
new AccessibleRelation(AccessibleRelation.LABELED_BY, lblAbility1));
@@ -1482,9 +1481,8 @@ private JPanel fillSkills() {
14821481

14831482
if (option.booleanValue()) {
14841483
JLabel lblImplants2 = new JLabel(Utilities.getOptionDisplayName(option));
1485-
lblImplants2.setToolTipText(wordWrap("<html>"
1486-
+ option.getDescription().replaceAll("\\n", "<br>")
1487-
+ "</html>"));
1484+
lblImplants2.setToolTipText(wordWrap(
1485+
option.getDescription().replaceAll("\\n", "<br>")));
14881486
lblImplants2.setName("lblImplants2");
14891487
lblImplants2.getAccessibleContext().getAccessibleRelationSet().add(
14901488
new AccessibleRelation(AccessibleRelation.LABELED_BY, lblImplants1));

0 commit comments

Comments
 (0)