mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08: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…
Add table
Add a link
Reference in a new issue