diff --git a/XML_Moodle.py b/XML_Moodle.py index 24d1892db51fe2f33645d864ba312790d92d3df3..bbf757e997e7622705404a1ef6c74872010aadaa 100755 --- a/XML_Moodle.py +++ b/XML_Moodle.py @@ -124,7 +124,7 @@ class Cloze(Question): self.choices.append(Answer(f"{l}) {c}", 0, self.max)) def __str__(self): - res = "\\element{" + self.category + "}{\n\t\\begin{" + self.env + "}{" + self.id + "}\\nbpoints{" + score_2_str(self.max) + "}\\\\\n" + self.q +"\n\t\t\\begin{multicols}{"+str(len(self.choices_num))+"}\n\t\t\t\\begin{choices}[o]\n\\AMCnoCompleteMulti" + res = "\\element{" + self.category + "}{\n\t\\begin{" + self.env + "}{" + self.id + "}\\nbpoints{" + score_2_str(self.max) + "}\\\\\n" + self.q +"\n\t\t\\begin{multicols}{"+str(max(2,len(self.choices_num)))+"}\n\t\t\t\\begin{choices}[o]\n\\AMCnoCompleteMulti" res += "\n" l = 0 i = 0