mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
Removed displaying empty rule texts in tooltips.
This commit is contained in:
parent
c5d8d32391
commit
b4e3e07274
1 changed files with 5 additions and 3 deletions
|
@ -146,9 +146,11 @@ public class CardInfoPaneImpl extends JEditorPane implements CardInfoPane {
|
||||||
legal = legal.replace("\r\n", "<div style='font-size:5pt'></div>");
|
legal = legal.replace("\r\n", "<div style='font-size:5pt'></div>");
|
||||||
legal += "<br>";
|
legal += "<br>";
|
||||||
for (String ruling : rulings) {
|
for (String ruling : rulings) {
|
||||||
legal += "<p style='margin: 2px'>";
|
if (!ruling.replace(".", "").trim().isEmpty()) {
|
||||||
legal += ruling;
|
legal += "<p style='margin: 2px'>";
|
||||||
legal += "</p>";
|
legal += ruling;
|
||||||
|
legal += "</p>";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue