\n \n x=10 print("hello \n")\n
\n ' \
+ '\n\n'
problem_content = self.get_problem_content(course_location)
-
self.assertEqual(expected_problem_content, problem_content)
def test_problem_content_on_course_export_import(self):
diff --git a/common/lib/xmodule/xmodule/raw_module.py b/common/lib/xmodule/xmodule/raw_module.py
index 02ab2181a0..4d80245357 100644
--- a/common/lib/xmodule/xmodule/raw_module.py
+++ b/common/lib/xmodule/xmodule/raw_module.py
@@ -29,7 +29,7 @@ class RawMixin(object):
data = etree.tostring(xml_object, pretty_print=True, encoding='unicode')
if pre_tag_data:
for index, pre_tag in enumerate(re.findall(PRE_TAG_REGEX, data)):
- data = re.sub(re.escape(pre_tag), pre_tag_data[index].decode(), data)
+ data = re.sub(pre_tag, pre_tag_data[index].decode(), data)
return {'data': data}, []
def definition_to_xml(self, resource_fs):