summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2023-04-19 11:11:03 +0200
committerjaseg <git@jaseg.de>2023-04-19 11:11:03 +0200
commit240e5569aa7521aed321b2607f78d198c36ed8b8 (patch)
tree02c14ee60e346cf9400f400feca754e37c368447
parent2c6c9a5cbc6d389a17c0cc15173c6e626fd5d5c6 (diff)
downloadgerbonara-240e5569aa7521aed321b2607f78d198c36ed8b8.tar.gz
gerbonara-240e5569aa7521aed321b2607f78d198c36ed8b8.tar.bz2
gerbonara-240e5569aa7521aed321b2607f78d198c36ed8b8.zip
Fix serialization bug with aperture macro comments
-rw-r--r--gerbonara/aperture_macros/parse.py2
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)