- Fixed text formatting.

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

View File

@@ -2421,15 +2421,15 @@ 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)) {
String chooseText = elementText.split("-")[0].trim();
String[] splitElemText = elementText.split("-");
String[] choices = splitElemText.length > 1 ? splitElemText[1].split(";") : null;
//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[] splitElemText = elementText.split("-");
String[] choices = splitElemText.length > 1 ? splitElemText[1].split(";") : null;
sb.append(chooseText);
sb.append(chooseText);
if (choices != null) {
sb.append("&#151;\r\n");
for (int i = 0; i < choices.length; i++) {
@@ -2448,10 +2448,10 @@ public class Card extends GameEntity implements Comparable<Card> {
}
}
} else {
sb.append(elementText).append("\r\n");
}
} else {
sb.append(elementText).append("\r\n");
}
}
// Add Keywords