diff --git a/XML_Moodle.py b/XML_Moodle.py
index 75ce4632ae608ad7bb2bc23c73d4c6ae680c1dd5..b96ba3bc6d48d4468fa188ded4bd27cc9c5db820 100755
--- a/XML_Moodle.py
+++ b/XML_Moodle.py
@@ -134,7 +134,7 @@ class MCQ(Question):
 
 	def __str__(self):
 		res = """\\element{"""+self.category+"""}{
-	\\begin{"""+self.env+"""}{"""+self.id+"""}\\nbpoints{"""+score_2_str(self.max)+"""}
+	\\begin{"""+self.env+"""}{"""+self.id+"""}\\nbpoints{"""+score_2_str(self.max)+"""}\\\\
 		"""+self.q+"\n\t\t\\begin{"+self.get_choice_env()+"}"
 		if not self.shuffle:
 			res += "[o]"
@@ -178,7 +178,7 @@ class ShortAnswer(TF):
 
 	def __str__(self):
 		res = """\\element{"""+self.category+"""}{
-	\\begin{"""+self.env+"""}{"""+self.id+"""}\\nbpoints{"""+score_2_str(self.max)+"""}
+	\\begin{"""+self.env+"""}{"""+self.id+"""}\\nbpoints{"""+score_2_str(self.max)+"""}\\\\
 		"""+self.q+"\n\t\t\\AMCOpen{lineheight=0.6cm,lines="+str(self.nb_lines)+"}{"
 		for c in self.choices:
 			res += "\\wrongchoice{"+score_2_str(c)+"}\\scoring{"+score_2_str(c)+"}"