From 9d9cacb83dcc606fe014a8b8296dd0b3c990d636 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Wed, 17 Apr 2024 21:18:36 +0200 Subject: [PATCH] Add name element to XML --- converter.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/converter.py b/converter.py index 122c57a..0ab10de 100644 --- a/converter.py +++ b/converter.py @@ -53,6 +53,9 @@ class System: """Convert the current system into an XML element""" system = ElementTree.Element("lsystem") + base = ElementTree.SubElement(system, "name") + base.text = self.name + base = ElementTree.SubElement(system, "base") base.text = "".join(self.base)