mirror of
https://github.com/correl/mage.git
synced 2024-12-24 11:50:45 +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 += "<br>";
|
||||
for (String ruling : rulings) {
|
||||
legal += "<p style='margin: 2px'>";
|
||||
legal += ruling;
|
||||
legal += "</p>";
|
||||
if (!ruling.replace(".", "").trim().isEmpty()) {
|
||||
legal += "<p style='margin: 2px'>";
|
||||
legal += ruling;
|
||||
legal += "</p>";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue