diff --git a/XML_Moodle.py b/XML_Moodle.py index f1da54d3d8fb4c6bbfed07eb048ffe5aeb293b8e..75ce4632ae608ad7bb2bc23c73d4c6ae680c1dd5 100755 --- a/XML_Moodle.py +++ b/XML_Moodle.py @@ -164,7 +164,7 @@ class TF(MCQ): self.choices.append(Answer("\\multiling{faux}{false}", a.attrib['fraction'], self.max, fb)) class ShortAnswer(TF): - def __init__(self, xmlQ,c,n,f,l=4): + def __init__(self, xmlQ,c,n,f,l=2): super().__init__(xmlQ,c,n,f) self.nb_lines = l if self.__class__.__name__ == "ShortAnswer": @@ -179,7 +179,7 @@ class ShortAnswer(TF): def __str__(self): res = """\\element{"""+self.category+"""}{ \\begin{"""+self.env+"""}{"""+self.id+"""}\\nbpoints{"""+score_2_str(self.max)+"""} - """+self.q+"\n\t\t\\AMCOpen{lineheight=0.66cm,lines="+str(self.nb_lines)+"}{" + """+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)+"}" res += "\\correctchoice{"+score_2_str(self.max)+"}\\scoring{"+score_2_str(self.max)+"}"