diff options
author | Paulo Henrique Silva <ph.silva@gmail.com> | 2015-04-07 18:27:31 -0300 |
---|---|---|
committer | Paulo Henrique Silva <ph.silva@gmail.com> | 2015-04-07 18:27:31 -0300 |
commit | 50c01d4635b3f86ce98b127308275a46adbeee80 (patch) | |
tree | 64987b8cfe68f9de5f89cfd94799b206e41be7f6 /gerber/gerber_statements.py | |
parent | d1c74317c8df83da5d9f01b74c28be2b467fa300 (diff) | |
download | gerbonara-50c01d4635b3f86ce98b127308275a46adbeee80.tar.gz gerbonara-50c01d4635b3f86ce98b127308275a46adbeee80.tar.bz2 gerbonara-50c01d4635b3f86ce98b127308275a46adbeee80.zip |
Fix CommentStmt for multi-line comments
Diffstat (limited to 'gerber/gerber_statements.py')
-rw-r--r-- | gerber/gerber_statements.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gerber/gerber_statements.py b/gerber/gerber_statements.py index 27066cd..1159dc0 100644 --- a/gerber/gerber_statements.py +++ b/gerber/gerber_statements.py @@ -954,7 +954,7 @@ class CommentStmt(Statement): def __init__(self, comment): Statement.__init__(self, "COMMENT") - self.comment = comment + self.comment = comment if comment is not None else "" def to_gerber(self, settings=None): return 'G04{0}*'.format(self.comment) @@ -1026,3 +1026,7 @@ class UnknownStmt(Statement): def to_gerber(self, settings=None): return self.line + + def __str__(self): + return '<Unknown Statement: \'%s\'>' % self.line + |