[card.plugin] replaced using double <br> in tooltips by using paragraph with margin - looks much better and fits the text of most cards now

This commit is contained in:
magenoxx 2010-12-21 20:28:50 +03:00
parent 760f059fb8
commit c85bd72248
2 changed files with 3 additions and 2 deletions

View file

@ -103,8 +103,9 @@ 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'>";
legal += ruling; legal += ruling;
legal += "<br><br>"; legal += "</p>";
} }
} }
@ -136,7 +137,7 @@ public class CardInfoPaneImpl extends JEditorPane implements CardInfoPane {
public void run () { public void run () {
if (!card.equals(currentCard)) return; if (!card.equals(currentCard)) return;
setText(buffer.toString()); setText(buffer.toString());
//System.out.println(buffer.toString()); System.out.println(buffer.toString());
setCaretPosition(0); setCaretPosition(0);
} }
}); });