netlist exporter xml: fix missing space between UUIDs for multi-units symbols.
(similar to the .net netlist) kicad_netlist_reader.py: fix compatibility with V6 xml netlist : "tstamp" keyword is now "tstamps" keyword. Fixes #8509 https://gitlab.com/kicad/code/kicad/issues/8509
This commit is contained in:
@@ -407,7 +407,15 @@ class comp():
|
||||
return ret
|
||||
|
||||
def getTimestamp(self):
|
||||
return self.element.get("tstamp")
|
||||
"""
|
||||
Kicad 5 uses tstamp keyword for time stamp (8 digits) as UUID
|
||||
Kicad 6 uses tstamps keyword for UUID and a multi unit symbol has more than one UUID
|
||||
(UUIDs are separed by spaces)
|
||||
"""
|
||||
ret = self.element.get("tstamp")
|
||||
if ret == "":
|
||||
ret = self.element.get("tstamps")
|
||||
return ret
|
||||
|
||||
def getDescription(self):
|
||||
return self.element.get("libsource", "description")
|
||||
|
||||
Reference in New Issue
Block a user