From c5d7e447c79f8d4047de2bd3a1ebb0f85dec88b0 Mon Sep 17 00:00:00 2001 From: Stefan <2252537-stefan_test@users.noreply.gitlab.com> Date: Thu, 5 Jan 2023 08:29:01 +0000 Subject: [PATCH] Bugfix: remove trailing comma after last ref --- .../plugins/python_scripts/bom_csv_grouped_by_value_with_fp.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eeschema/plugins/python_scripts/bom_csv_grouped_by_value_with_fp.py b/eeschema/plugins/python_scripts/bom_csv_grouped_by_value_with_fp.py index d707f14f59..a32c9c18b1 100644 --- a/eeschema/plugins/python_scripts/bom_csv_grouped_by_value_with_fp.py +++ b/eeschema/plugins/python_scripts/bom_csv_grouped_by_value_with_fp.py @@ -65,6 +65,9 @@ for group in grouped: refs += fromNetlistText( component.getRef() ) + ", " c = component + # remove last, not needed trailing comma and whitespace + refs = refs.removesuffix(', ') + # Fill in the component groups common data out.writerow([refs, len(group), fromNetlistText( c.getValue() ),