Removed displaying empty rule texts in tooltips.

This commit is contained in:
magenoxx 2011-08-03 10:03:30 +04:00
parent c5d8d32391
commit b4e3e07274

View file

@ -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>";
}
} }
} }