From b4e3e07274144fda41b80adea849606403e52f78 Mon Sep 17 00:00:00 2001 From: magenoxx Date: Wed, 3 Aug 2011 10:03:30 +0400 Subject: [PATCH] Removed displaying empty rule texts in tooltips. --- .../java/org/mage/plugins/card/info/CardInfoPaneImpl.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Mage.Plugins/Mage.Card.Plugin/src/main/java/org/mage/plugins/card/info/CardInfoPaneImpl.java b/Mage.Plugins/Mage.Card.Plugin/src/main/java/org/mage/plugins/card/info/CardInfoPaneImpl.java index ab83d14ce5..3224174c5d 100644 --- a/Mage.Plugins/Mage.Card.Plugin/src/main/java/org/mage/plugins/card/info/CardInfoPaneImpl.java +++ b/Mage.Plugins/Mage.Card.Plugin/src/main/java/org/mage/plugins/card/info/CardInfoPaneImpl.java @@ -146,9 +146,11 @@ public class CardInfoPaneImpl extends JEditorPane implements CardInfoPane { legal = legal.replace("\r\n", "
"); legal += "
"; for (String ruling : rulings) { - legal += "

"; - legal += ruling; - legal += "

"; + if (!ruling.replace(".", "").trim().isEmpty()) { + legal += "

"; + legal += ruling; + legal += "

"; + } } }