summaryrefslogtreecommitdiff
path: root/gerber
diff options
context:
space:
mode:
authorPaulo Henrique Silva <ph.silva@gmail.com>2015-04-07 18:27:31 -0300
committerPaulo Henrique Silva <ph.silva@gmail.com>2015-04-07 18:27:31 -0300
commit50c01d4635b3f86ce98b127308275a46adbeee80 (patch)
tree64987b8cfe68f9de5f89cfd94799b206e41be7f6 /gerber
parentd1c74317c8df83da5d9f01b74c28be2b467fa300 (diff)
downloadgerbonara-50c01d4635b3f86ce98b127308275a46adbeee80.tar.gz
gerbonara-50c01d4635b3f86ce98b127308275a46adbeee80.tar.bz2
gerbonara-50c01d4635b3f86ce98b127308275a46adbeee80.zip
Fix CommentStmt for multi-line comments
Diffstat (limited to 'gerber')
-rw-r--r--gerber/gerber_statements.py6
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
+