User Tools

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__':

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also, you acknowledge that you have read and understand our Privacy Policy. If you do not agree, please leave the website.

More information