Add name element to XML

This commit is contained in:
Mylloon 2024-04-17 21:18:36 +02:00
parent 7103a296ba
commit 9d9cacb83d
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -53,6 +53,9 @@ class System:
"""Convert the current system into an XML element""" """Convert the current system into an XML element"""
system = ElementTree.Element("lsystem") system = ElementTree.Element("lsystem")
base = ElementTree.SubElement(system, "name")
base.text = self.name
base = ElementTree.SubElement(system, "base") base = ElementTree.SubElement(system, "base")
base.text = "".join(self.base) base.text = "".join(self.base)