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,11 +146,13 @@ 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) {
if (!ruling.replace(".", "").trim().isEmpty()) {
legal += "<p style='margin: 2px'>"; legal += "<p style='margin: 2px'>";
legal += ruling; legal += ruling;
legal += "</p>"; legal += "</p>";
} }
} }
}
if (legal.length() > 0) { if (legal.length() > 0) {