diff --git a/website/for_teachers.py b/website/for_teachers.py index 4a73ab91fee..d8d1a301457 100644 --- a/website/for_teachers.py +++ b/website/for_teachers.py @@ -428,7 +428,7 @@ def is_program_modified(self, program, full_adventures, teacher_adventures): content = adventure['content'] soup = BeautifulSoup(content, features="html.parser") for pre in soup.find_all('pre'): - adventure_snippets.append(str(pre.contents[0])) + adventure_snippets.append(pre.text) student_code = program['code'].strip() # now we have to calculate the differences between the student code and the code snippets