From 51c630ab77e390cc4a5637fd4b99fb9a6bebcce5 Mon Sep 17 00:00:00 2001 From: Paulo Henrique Silva Date: Tue, 14 Apr 2015 23:27:11 -0300 Subject: AMStatement are used as is when gerbers are generated --- gerber/gerber_statements.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gerber/gerber_statements.py b/gerber/gerber_statements.py index c40eb81..f2fc970 100644 --- a/gerber/gerber_statements.py +++ b/gerber/gerber_statements.py @@ -391,7 +391,7 @@ class AMParamStmt(ParamStmt): primitive.to_metric() def to_gerber(self, settings=None): - return '%AM{0}*{1}%'.format(self.name, '\n'.join([primitive.to_gerber(settings) for primitive in self.primitives])) + return '%AM{0}*{1}*%'.format(self.name, self.macro) def __str__(self): return '' % (self.name, self.macro) @@ -785,7 +785,7 @@ class DeprecatedStmt(Statement): self.line = line def to_gerber(self, settings=None): - return '' + return self.line def __str__(self): return '' % self.line -- cgit