From 89a3451f6ff11c4547c2f01bfc165865030a3a92 Mon Sep 17 00:00:00 2001 From: Mathieu Loiseau <mathieu.loiseau@univ-grenoble-alpes.fr> Date: Wed, 26 Jan 2022 12:34:49 +0100 Subject: [PATCH] new line after nbpoints --- XML_Moodle.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/XML_Moodle.py b/XML_Moodle.py index 75ce463..b96ba3b 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)+"}" -- GitLab