Correctly handle empty command statements
This commit is contained in:
parent
7053d320f0
commit
a6c1862450
1 changed files with 6 additions and 0 deletions
|
|
@ -306,6 +306,12 @@ class GerberParser(object):
|
|||
while did_something and len(line) > 0:
|
||||
did_something = False
|
||||
|
||||
# consume empty data blocks
|
||||
if line[0] == '*':
|
||||
line = line[1:]
|
||||
did_something = True
|
||||
continue
|
||||
|
||||
# coord
|
||||
(coord, r) = _match_one(self.COORD_STMT, line)
|
||||
if coord:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue