- Fixed text formatting.

This commit is contained in:
Agetian
2014-09-16 07:12:41 +00:00
parent 0c55123770
commit 33f3639d75

View File

@@ -2421,14 +2421,14 @@ public class Card extends GameEntity implements Comparable<Card> {
String elementText = element.toString();
//Determine if a card has multiple choices, then format it in an easier to read list.
if (element.getApi() != null && element.getApi().equals(ApiType.Charm)) {
//Determine if a card has multiple choices, then format it in an easier to read list.
if (element.getApi() != null && element.getApi().equals(ApiType.Charm)) {
String chooseText = elementText.split("-")[0].trim();
String chooseText = elementText.split("-")[0].trim();
String[] splitElemText = elementText.split("-");
String[] choices = splitElemText.length > 1 ? splitElemText[1].split(";") : null;
String[] choices = splitElemText.length > 1 ? splitElemText[1].split(";") : null;
sb.append(chooseText);
sb.append(chooseText);
if (choices != null) {
sb.append("&#151;\r\n");
@@ -2448,9 +2448,9 @@ public class Card extends GameEntity implements Comparable<Card> {
}
}
} else {
sb.append(elementText).append("\r\n");
}
} else {
sb.append(elementText).append("\r\n");
}
}