Skip to content

Commit

Permalink
Switch the problem editor to use the debug format.
Browse files Browse the repository at this point in the history
This is as discussed in openwebwork#2661, openwebwork#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.
  • Loading branch information
drgrice1 committed Feb 4, 2025
1 parent f1da2b1 commit a7ab729
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/js/PGProblemEditor/pgproblemeditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit a7ab729

Please sign in to comment.