From a7ab729823cc1b4f4b4a07250c33f6d1895431b9 Mon Sep 17 00:00:00 2001 From: Glenn Rice Date: Tue, 4 Feb 2025 15:08:46 -0600 Subject: [PATCH] Switch the problem editor to use the debug format. This is as discussed in #2661, #2662 and the developer meeting. The PG problem editor is switched to the debug format from the simple format. The only difference for the problem editor page is that if there are debug messages they are now shown. Usually there aren't any such messages, and so there isn't a difference. But if something is enabled like the MathObject diagnostics cmp flag, then those debug messages are shown. --- htdocs/js/PGProblemEditor/pgproblemeditor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/js/PGProblemEditor/pgproblemeditor.js b/htdocs/js/PGProblemEditor/pgproblemeditor.js index a5ce979a5c..07b0a46116 100644 --- a/htdocs/js/PGProblemEditor/pgproblemeditor.js +++ b/htdocs/js/PGProblemEditor/pgproblemeditor.js @@ -396,7 +396,7 @@ sourceFilePath: document.getElementsByName('edit_file_path')[0]?.value, rawProblemSource: webworkConfig?.pgCodeMirror?.source ?? document.getElementById('problemContents')?.value ?? '', - outputformat: 'simple', + outputformat: 'debug', showAnswerNumbers: 0, // The set id is really only needed by set headers to get the correct dates for the set. set_id: document.getElementsByName('hidden_set_id')[0]?.value ?? 'Unknown Set',