From 50c01d4635b3f86ce98b127308275a46adbeee80 Mon Sep 17 00:00:00 2001 From: Paulo Henrique Silva Date: Tue, 7 Apr 2015 18:27:31 -0300 Subject: Fix CommentStmt for multi-line comments --- gerber/gerber_statements.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'gerber') 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 '' % self.line + -- cgit