Bugfix: remove trailing comma after last ref

This commit is contained in:
Stefan 2023-01-05 08:29:01 +00:00 committed by jean-pierre charras
parent c3a214983d
commit c5d7e447c7
1 changed files with 3 additions and 0 deletions

View File

@ -65,6 +65,9 @@ for group in grouped:
refs += fromNetlistText( component.getRef() ) + ", " refs += fromNetlistText( component.getRef() ) + ", "
c = component c = component
# remove last, not needed trailing comma and whitespace
refs = refs.removesuffix(', ')
# Fill in the component groups common data # Fill in the component groups common data
out.writerow([refs, len(group), out.writerow([refs, len(group),
fromNetlistText( c.getValue() ), fromNetlistText( c.getValue() ),