From e5fa18c9b1008c1b9beba8a164fc003206aa9e84 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Tue, 18 Jan 2022 13:48:11 +0100 Subject: [PATCH] fix an issue in a bom script (extra empty lines created) Fixes #10473 https://gitlab.com/kicad/code/kicad/issues/10473 (cherry picked from commit 380cb452b2a7f5ba9ebe7febc8ba5c6d3f6f8c9d) --- .../plugins/python_scripts/bom_csv_grouped_by_value_with_fp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 cc51d0911c..d707f14f59 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 @@ -40,7 +40,7 @@ except IOError: f = sys.stdout # Create a new csv writer object to use as the output formatter -out = csv.writer(f, delimiter=',', quotechar='\"', quoting=csv.QUOTE_ALL) +out = csv.writer(f, lineterminator='\n', delimiter=',', quotechar='\"', quoting=csv.QUOTE_ALL) # Output a set of rows for a header providing general information out.writerow(['Source:', net.getSource()])