User Tools

Site Tools


inkex

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

inkex [2023/09/15 13:59] – created ssm2017inkex [2023/09/15 14:36] (current) – [get symbols attributes] ssm2017
Line 59: Line 59:
                 for attrib_name, attrib_value in symbol.attrib.items():                 for attrib_name, attrib_value in symbol.attrib.items():
                     if attrib_name.startswith("data-"):                     if attrib_name.startswith("data-"):
-                        node.set(attrib_name, attrib_value)+                        if not node.get(attrib_name): 
 +                            node.set(attrib_name, attrib_value)
  
 if __name__ == '__main__': if __name__ == '__main__':
inkex.1694779176.txt.gz · Last modified: by ssm2017