summaryrefslogtreecommitdiff
path: root/gerbonara/aperture_macros/parse.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2023-04-30 01:44:58 +0200
committerjaseg <git@jaseg.de>2023-04-30 01:44:58 +0200
commit9ffc96cbe53eb0335f8a379252fb8124acaf5346 (patch)
treef22e576a7f61a88ba07a8f52e7a896fe0921529a /gerbonara/aperture_macros/parse.py
parentfda243315434f8cc4c21498a1dcb2c37ad39d268 (diff)
downloadgerbonara-9ffc96cbe53eb0335f8a379252fb8124acaf5346.tar.gz
gerbonara-9ffc96cbe53eb0335f8a379252fb8124acaf5346.tar.bz2
gerbonara-9ffc96cbe53eb0335f8a379252fb8124acaf5346.zip
Finish macro-based alio layout
Diffstat (limited to 'gerbonara/aperture_macros/parse.py')
-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 a4c2956..5dda931 100644
--- a/gerbonara/aperture_macros/parse.py
+++ b/gerbonara/aperture_macros/parse.py
@@ -111,7 +111,7 @@ class ApertureMacro:
def to_gerber(self, unit=None):
comments = [ str(c) for c in self.comments ]
- variable_defs = [ f'${var}={expr}' for var, expr in enumerate(self.variables, start=1) if expr is not None ]
+ variable_defs = [ f'${var}={str(expr)[1:-1]}' for var, expr in enumerate(self.variables, start=1) if expr is not None ]
primitive_defs = [ prim.to_gerber(unit) for prim in self.primitives ]
return '*\n'.join(comments + variable_defs + primitive_defs)