mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
Fix tooltip for cards with apostrophes. If there are cards with quotes
or lt/gt in the name, this will need more generic approach.
This commit is contained in:
parent
20e7130bb1
commit
75324f778e
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@ public class ColorPane extends JEditorPane {
|
|||
|
||||
public void append(String text) {
|
||||
try {
|
||||
text = text.replaceAll("(<font color=[^>]*>([^<]*)) (\\[[0-9a-fA-F]*\\])</font>", "<a href='#$2'>$1</a> $3");
|
||||
text = text.replaceAll("(<font color=[^>]*>([^<]*)) (\\[[0-9a-fA-F]*\\])</font>", "<a href=\"#$2\">$1</a> $3");
|
||||
setEditable(true);
|
||||
kit.insertHTML(doc, doc.getLength(), text, 0, 0, null);
|
||||
setEditable(false);
|
||||
|
|
Loading…
Reference in a new issue