From 751c05a7d30db2e28e358ddeb4f92d77973ababd Mon Sep 17 00:00:00 2001 From: Tim Schroeder Date: Tue, 3 Aug 2021 19:15:11 +0200 Subject: [PATCH] fix html structure there were too many closing divs --- renderer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/renderer.php b/renderer.php index 228cd13..cb3827a 100755 --- a/renderer.php +++ b/renderer.php @@ -78,7 +78,7 @@ public function formulation_and_controls(question_attempt $qa, question_display_ if ($question->answerdisplay == "dragdrop") { $answeroptions = $this->setup_answeroptions($qa); } - $questiontext = html_writer::empty_tag('div', array('class' => 'qtext')); + $questiontext = html_writer::start_div('qtext'); $markedgaps = $question->get_markedgaps($qa, $options); foreach ($question->textfragments as $place => $fragment) { @@ -151,7 +151,7 @@ public function app_connect(qtype_gapfill_question $question, string $questionte if ($question->singleuse == true) { $questiontext .= "
"; } - return $questiontext.''; + return $questiontext; } /** * Construct the gaps, e.g. textentry or dropdowns and