diff --git a/question/type/questiontypebase.php b/question/type/questiontypebase.php index 48ed3d35f99..432ec588014 100644 --- a/question/type/questiontypebase.php +++ b/question/type/questiontypebase.php @@ -986,10 +986,11 @@ class question_type { array_shift($extraanswersfields); } foreach ($question->options->answers as $answer) { + // TODO this should be re-factored to use $format->write_answer(). $percent = 100 * $answer->fraction; - $expout .= " \n"; + $expout .= " format($answer->answerformat)}>\n"; $expout .= $format->writetext($answer->answer, 3, false); - $expout .= " \n"; + $expout .= " format($question->feedbackformat)}>\n"; $expout .= $format->writetext($answer->feedback, 4, false); $expout .= " \n"; if (is_array($extraanswersfields)) {