diff options
author | jaseg <git@jaseg.de> | 2022-01-23 14:41:59 +0100 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2022-01-23 14:41:59 +0100 |
commit | 4ed83580963669e29305c45b104b78a22ef3e86c (patch) | |
tree | b120256fdd0df45340e0c5d8ae61496f3613ae05 /gerbonara/gerber/utils.py | |
parent | deb2bb2bbfc13e6dce8adf493221a4fe4929a344 (diff) | |
download | gerbonara-4ed83580963669e29305c45b104b78a22ef3e86c.tar.gz gerbonara-4ed83580963669e29305c45b104b78a22ef3e86c.tar.bz2 gerbonara-4ed83580963669e29305c45b104b78a22ef3e86c.zip |
Fix a whole bunch of SVG export bugs
Diffstat (limited to 'gerbonara/gerber/utils.py')
-rw-r--r-- | gerbonara/gerber/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gerbonara/gerber/utils.py b/gerbonara/gerber/utils.py index e17b99b..00ba41e 100644 --- a/gerbonara/gerber/utils.py +++ b/gerbonara/gerber/utils.py @@ -203,7 +203,7 @@ class Tag: def __str__(self): prefix = '<?xml version="1.0" encoding="utf-8"?>\n' if self.root else '' - opening = ' '.join([self.name] + [f'{key.replace("__", ":")}="{value}"' for key, value in self.attrs.items()]) + opening = ' '.join([self.name] + [f'{key.replace("__", ":").replace("_", "-")}="{value}"' for key, value in self.attrs.items()]) if self.children: children = '\n'.join(textwrap.indent(str(c), ' ') for c in self.children) return f'{prefix}<{opening}>\n{children}\n</{self.name}>' |