CardDetailUtil.composeCardText add support for ",,," = line break

This commit is contained in:
Northmoc
2022-10-18 12:22:28 -04:00
parent 82158d252c
commit d8fb08e76e

View File

@@ -309,8 +309,9 @@ public class CardDetailUtil {
regex = "LEVEL [0-9]+\\+ \\[[0-99]+/[0-99]]+ "; regex = "LEVEL [0-9]+\\+ \\[[0-99]+/[0-99]]+ ";
text = text.replaceAll(regex, "$0\r\n"); text = text.replaceAll(regex, "$0\r\n");
regex = "LEVEL [0-9]+\\+ "; // ",,," becomes a line break
text = text.replaceAll(regex, "\r\n$0\r\n"); regex = ",,,";
text = text.replaceAll(regex, "\r\n");
// displays keywords that have dots in them a little better: // displays keywords that have dots in them a little better:
regex = "\\., "; regex = "\\., ";