diff --git a/mod/lesson/locallib.php b/mod/lesson/locallib.php index 5b847da7294..6cf5026acd8 100644 --- a/mod/lesson/locallib.php +++ b/mod/lesson/locallib.php @@ -4206,8 +4206,9 @@ abstract class lesson_page extends lesson_base { if (!empty(trim($response))) { $studentresponse = isset($result->responseformat) ? $this->format_response($response, $context, $result->responseformat, $options) : $response; - $table->data[] = array(''.get_string("response", "lesson"). - ':
'.$studentresponse); + $studentresponsecontent = html_writer::div('' . get_string("response", "lesson") . + ':
' . $studentresponse, $class); + $table->data[] = array($studentresponsecontent); } else { $table->data[] = array(''); } @@ -4221,8 +4222,9 @@ abstract class lesson_page extends lesson_base { $studentresponse = isset($result->responseformat) ? $this->format_response($result->response, $context, $result->responseformat, $result->answerid, $options) : $result->response; - $table->data[] = array(''.get_string("response", "lesson"). - ':
'.$studentresponse); + $studentresponsecontent = html_writer::div('' . get_string("response", "lesson") . + ':
' . $studentresponse, $class); + $table->data[] = array($studentresponsecontent); } else { $table->data[] = array(''); }