diff --git a/htdocs/js/PGProblemEditor/pgproblemeditor.js b/htdocs/js/PGProblemEditor/pgproblemeditor.js index 3a2078f8ad..144d149e59 100644 --- a/htdocs/js/PGProblemEditor/pgproblemeditor.js +++ b/htdocs/js/PGProblemEditor/pgproblemeditor.js @@ -303,7 +303,7 @@ if (fileType === 'course_info') { const contents = webworkConfig?.pgCodeMirror?.getValue(); - if (contents) renderArea.innerHTML = contents; + if (contents) renderArea.innerHTML = `
${contents}
`; else renderArea.innerHTML = '
The file has no content.
';