Fix minor card render problems (#8478)

* Missing space

* Unescape line breaks in card descriptions
This commit is contained in:
Eradev
2025-08-22 23:56:21 -04:00
committed by GitHub
parent cdc63f35bb
commit eeca33855d
4 changed files with 11 additions and 3 deletions

View File

@@ -252,7 +252,9 @@ public class VStack extends FDropDown {
stackInstance = stackInstance0;
CardView card = stackInstance.getSourceCard();
text = stackInstance.getText();
text = stackInstance.getText()
.replace("\\r", "\r")
.replace("\\n", "\n");
if (stackInstance.isOptionalTrigger() &&
stackInstance0.getActivatingPlayer().equals(MatchController.instance.getCurrentPlayer())) {
text = "(OPTIONAL) " + text;