diff options
author | jaseg <git@jaseg.de> | 2023-04-19 11:11:03 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2023-04-19 11:11:03 +0200 |
commit | 240e5569aa7521aed321b2607f78d198c36ed8b8 (patch) | |
tree | 02c14ee60e346cf9400f400feca754e37c368447 /gerbonara | |
parent | 2c6c9a5cbc6d389a17c0cc15173c6e626fd5d5c6 (diff) | |
download | gerbonara-240e5569aa7521aed321b2607f78d198c36ed8b8.tar.gz gerbonara-240e5569aa7521aed321b2607f78d198c36ed8b8.tar.bz2 gerbonara-240e5569aa7521aed321b2607f78d198c36ed8b8.zip |
Fix serialization bug with aperture macro comments
Diffstat (limited to 'gerbonara')
-rw-r--r-- | gerbonara/aperture_macros/parse.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gerbonara/aperture_macros/parse.py b/gerbonara/aperture_macros/parse.py index 868f7ae..5ecc8ad 100644 --- a/gerbonara/aperture_macros/parse.py +++ b/gerbonara/aperture_macros/parse.py @@ -120,7 +120,7 @@ class ApertureMacro: return dup def to_gerber(self, unit=None): - comments = [ c.to_gerber() for c in self.comments ] + comments = [ str(c) for c in self.comments ] variable_defs = [ f'${var.to_gerber(unit)}={expr}' for var, expr in self.variables.items() ] primitive_defs = [ prim.to_gerber(unit) for prim in self.primitives ] return '*\n'.join(comments + variable_defs + primitive_defs) |