From 240e5569aa7521aed321b2607f78d198c36ed8b8 Mon Sep 17 00:00:00 2001 From: jaseg Date: Wed, 19 Apr 2023 11:11:03 +0200 Subject: Fix serialization bug with aperture macro comments --- gerbonara/aperture_macros/parse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gerbonara/aperture_macros/parse.py') 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) -- cgit