Skip to content

Commit f53d1f5

Browse files
committed
Handle multiple weights - so inner and outer are added correctly
1 parent f611e73 commit f53d1f5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

SparkFunKiCadPanelizer/panelizer/panelizer.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,10 @@ def startPanelizer(self, args, board=None, ordering=None, logger=None):
579579
if "material" in line or "Material" in line or "MATERIAL" in line:
580580
material = line
581581
if "weight" in line or "Weight" in line or "WEIGHT" in line or "oz" in line or "Oz" in line or "OZ" in line:
582-
copperWeight = line
582+
if copperWeight is None:
583+
copperWeight = line
584+
else:
585+
copperWeight += "\n" + line
583586
for extra in possibleExtras:
584587
if extra in line:
585588
if orderingExtras is None:

0 commit comments

Comments
 (0)