Skip to content

Commit 6112e9e

Browse files
authored
Merge pull request #5087 from IllianiCBT/spa_displayErrors
Fixed SPA Tooltip HTML Wrapping in `PersonViewPanel`
2 parents f930cec + ac97987 commit 6112e9e

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
@@ -1448,9 +1448,8 @@ private JPanel fillSkills() {
14481448
IOption option = i.nextElement();
14491449
if (option.booleanValue()) {
14501450
JLabel lblAbility2 = new JLabel(Utilities.getOptionDisplayName(option));
1451-
lblAbility2.setToolTipText(wordWrap("<html>"
1452-
+ option.getDescription().replaceAll("\\n", "<br>")
1453-
+ "</html>"));
1451+
lblAbility2.setToolTipText(wordWrap(
1452+
option.getDescription().replaceAll("\\n", "<br>")));
14541453
lblAbility2.setName("lblAbility2");
14551454
lblAbility2.getAccessibleContext().getAccessibleRelationSet().add(
14561455
new AccessibleRelation(AccessibleRelation.LABELED_BY, lblAbility1));
@@ -1481,9 +1480,8 @@ private JPanel fillSkills() {
14811480

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

0 commit comments

Comments
 (0)