diff options
author | Garret Fick <garret@ficksworkshop.com> | 2016-03-19 11:28:45 +0800 |
---|---|---|
committer | Garret Fick <garret@ficksworkshop.com> | 2016-03-19 11:28:45 +0800 |
commit | a6c186245075efa2af2acf7b736a1c8f0d0d90f6 (patch) | |
tree | e8e977e5a9fa1cc9705af2cfae3c141bf68d0464 | |
parent | 7053d320f0b3e9404edb4c05710001ea58d44995 (diff) | |
download | gerbonara-a6c186245075efa2af2acf7b736a1c8f0d0d90f6.tar.gz gerbonara-a6c186245075efa2af2acf7b736a1c8f0d0d90f6.tar.bz2 gerbonara-a6c186245075efa2af2acf7b736a1c8f0d0d90f6.zip |
Correctly handle empty command statements
-rw-r--r-- | gerber/rs274x.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gerber/rs274x.py b/gerber/rs274x.py index 4ab5472..692ce71 100644 --- a/gerber/rs274x.py +++ b/gerber/rs274x.py @@ -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: |