diff options
author | Paulo Henrique Silva <ph.silva@gmail.com> | 2015-04-14 23:27:11 -0300 |
---|---|---|
committer | Paulo Henrique Silva <ph.silva@gmail.com> | 2015-04-14 23:27:11 -0300 |
commit | 51c630ab77e390cc4a5637fd4b99fb9a6bebcce5 (patch) | |
tree | 62268eae00af624e28b9110579fe04a4235b7889 /gerber/gerber_statements.py | |
parent | d6bb61eec681d5151fb5869b6a8e4618eba1398d (diff) | |
download | gerbonara-51c630ab77e390cc4a5637fd4b99fb9a6bebcce5.tar.gz gerbonara-51c630ab77e390cc4a5637fd4b99fb9a6bebcce5.tar.bz2 gerbonara-51c630ab77e390cc4a5637fd4b99fb9a6bebcce5.zip |
AMStatement are used as is when gerbers are generated
Diffstat (limited to 'gerber/gerber_statements.py')
-rw-r--r-- | gerber/gerber_statements.py | 4 |
1 files 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 '<Aperture Macro %s: %s>' % (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 '<Deprecated Statement: \'%s\'>' % self.line |