From 0bb9693790292ceba5aff92ec7c48ccadfe18351 Mon Sep 17 00:00:00 2001 From: pirateIB <20496203-ibdocs.2@users.noreply.gitlab.com> Date: Thu, 13 Mar 2025 12:30:26 +0000 Subject: [PATCH] fix lazy search --- app/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/index.js b/app/index.js index 3edc84d..bbcf63d 100644 --- a/app/index.js +++ b/app/index.js @@ -116,7 +116,7 @@ function generatePDF() { concatenatedHTML += h3.outerHTML + squareContainer.outerHTML; if (includeMarkschemes === "yes") { - const msDiv = document.querySelector(`[id*="markscheme-${questionId}"]`); + const msDiv = document.querySelector(`[id*="markscheme-${questionId} "]`); const cloneMsDiv = msDiv.cloneNode(true); cloneMsDiv.classList.remove('hidden'); markschemesHTML += h3.outerHTML + cloneMsDiv.outerHTML;