From defa769dd297e8f4e2afc526fa2dfc1c9ccc8f8c Mon Sep 17 00:00:00 2001 From: Paul Z Date: Thu, 23 Nov 2023 19:54:10 +0100 Subject: [PATCH] support long answers --- templates/single_choice/viewer.stpl | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/templates/single_choice/viewer.stpl b/templates/single_choice/viewer.stpl index d715013..f2eb438 100644 --- a/templates/single_choice/viewer.stpl +++ b/templates/single_choice/viewer.stpl @@ -6,6 +6,14 @@ +<% if answers.iter().any(|x| x.len() > 4) { %> +
    + <% for answer in answers.iter() { %> +
  1. <%= answer %>

  2. + <% } %> +
+<% } %> +