From e22c72636e31c11815ad0f80b1a73e060188efe9 Mon Sep 17 00:00:00 2001 From: Clemens Koza Date: Thu, 10 Oct 2024 19:39:45 +0200 Subject: [PATCH] conditionally use the old or new ticked ballot symbol name --- src/task-kinds/choice.typ | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/task-kinds/choice.typ b/src/task-kinds/choice.typ index 74a150b..fa8efb8 100644 --- a/src/task-kinds/choice.typ +++ b/src/task-kinds/choice.typ @@ -16,7 +16,13 @@ show: move.with(dy: -0.1em) set text(1.5em) solution.answer( - if correct { sym.ballot.x } else { sym.ballot }, + if not correct { + sym.ballot + } else if sys.version < version(0, 12, 0) { + sym.ballot.x + } else { + sym.ballot.cross + }, placeholder: sym.ballot, ) })