From b3463ec378adb66d3824a5d883f8a4567ebe3b47 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 19 Oct 2025 20:19:36 +0100 Subject: [PATCH] Don't quote quiz question HTML --- template.html | 4 ++-- utils.pl | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/template.html b/template.html index 461b4eb..5c3d030 100644 --- a/template.html +++ b/template.html @@ -377,7 +377,7 @@ Hide email address from public database.
@@@if:registernew|picked@@@ -@@@quiz_question_input@@@ +@@@lit:quiz_question_input@@@ @@@endif:@@@ @@ -406,7 +406,7 @@ a recent notification of your password, you should request a current password:

-@@@quiz_question_input@@@ +@@@lit:quiz_question_input@@@
(The password will be sent to the registered email address for the entry.) diff --git a/utils.pl b/utils.pl index 3528cb7..0977e41 100644 --- a/utils.pl +++ b/utils.pl @@ -84,10 +84,12 @@ sub process ($$) { } elsif (m/\S/) { s/^\@\@\@$//; if ($doing) { - s/\@\@\@(\w+)\@\@\@/ getvar_mightquote("$1", $quote_html) /ge; + s/\@\@\@(lit:)?(\w+)\@\@\@/ + getvar_mightquote("$2", !$1 && $quote_html) + /ge; out($_); } else { - s/\@\@\@\w+\@\@\@//g; + s/\@\@\@(?:lit:)?\w+\@\@\@//g; } die "$filename:$cl:unknown $_\n" if m/\@\@\@/; } -- 2.30.2