Latex tab still has a bug with jinja2
This commit is contained in:
		| @@ -34,7 +34,7 @@ class Student(object): | ||||
|                 } | ||||
|  | ||||
|         if len(evalname) != 1: | ||||
|             raise ValueError("Can't initiate Student: dfs contains different evaluation names") | ||||
|             raise ValueError(f"Can't initiate Student: dfs contains different evaluation names ({'-'.join(evalname)})") | ||||
|  | ||||
|         self.quest_df = quest_df | ||||
|         self.exo_df = exo_df | ||||
| @@ -82,13 +82,13 @@ class Student(object): | ||||
|                     line += q['Latex_rep'] | ||||
|                 else: | ||||
|                     line += str(q['Mark']) | ||||
|                 line += r"\\" | ||||
|                 tabular.append(line) | ||||
|                 tabular.append(r"\hline") | ||||
|  | ||||
|         tabular.append(r"\end{tabular}") | ||||
|         return '\n'.join(tabular) | ||||
|  | ||||
|  | ||||
| class Classe(object): | ||||
|  | ||||
|     """  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user