From bb54ee2ddfacc64554630c4e41df44a6a158d058 Mon Sep 17 00:00:00 2001
From: Glenn Rice
Date: Fri, 16 Apr 2021 10:27:59 -0500
Subject: [PATCH 01/10] Update the other formats with the features added to the
simple_format in pull request #1301.
There are also a few tweaks to the simple format as well. Mainly just
adding the answer blank coloration (but only if it is not an answer
preview and is a submit or check answers).
---
lib/FormatRenderedProblem.pm | 2 +-
lib/WebworkClient/json_format.pl | 7 +++++--
lib/WebworkClient/simple2_format.pl | 18 ++++++++----------
lib/WebworkClient/simple_format.pl | 5 +++--
lib/WebworkClient/standard_format.pl | 13 ++++++-------
lib/WebworkClient/sticky_format.pl | 7 ++++---
6 files changed, 27 insertions(+), 25 deletions(-)
diff --git a/lib/FormatRenderedProblem.pm b/lib/FormatRenderedProblem.pm
index 1958f4ebd9..4dc7cace61 100644
--- a/lib/FormatRenderedProblem.pm
+++ b/lib/FormatRenderedProblem.pm
@@ -212,7 +212,7 @@ sub formatRenderedProblem {
summary => $problemResult->{summary} // '', # can be set by problem grader
);
my $answerTemplate = $tbl->answerTemplate;
- my $color_input_blanks_script = $tbl->color_answer_blanks;
+ my $color_input_blanks_script = (!$previewMode && ($checkMode || $submitMode)) ? $tbl->color_answer_blanks : "";
$tbl->imgGen->render(refresh => 1) if $tbl->displayMode eq 'images';
# Score summary
diff --git a/lib/WebworkClient/json_format.pl b/lib/WebworkClient/json_format.pl
index 9e1916e371..bec38660f2 100644
--- a/lib/WebworkClient/json_format.pl
+++ b/lib/WebworkClient/json_format.pl
@@ -82,9 +82,9 @@
$json_output->{body_part790} = "
";
-$json_output->{body_part999} = <<'ENDPROBLEMTEMPLATE';
+$json_output->{body_part999_VI} = <<'ENDPROBLEMTEMPLATE';
-
+$footer