diff --git a/converter.py b/converter.py index bee457a..4b2f6d0 100644 --- a/converter.py +++ b/converter.py @@ -18,22 +18,22 @@ class System: substitutions: list[tuple[str, str]], interpretations: list[tuple[str, str]], ): - self.name = name + self.name = name.strip() """System name""" - self.base = base + self.base = map(str.strip, base) """Set used""" - self.axiom = axiom + self.axiom = axiom.strip() """Axiom used at the start of iterations""" - self.substitutions = substitutions + self.substitutions = [(m.strip(), s.strip()) for m, s in substitutions] """ Substitution for each member of the base, represented as a couple (member, substitution) """ - self.interpretations = interpretations + self.interpretations = [(m.strip(), i.strip()) for m, i in interpretations] """ Interpretation for each member of the base, represented as a couple (member, interpretation)