From 0deaac2f6ebfb740bcb2303f70ed7df1804521fc Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Wed, 5 Feb 2025 13:39:58 -0300 Subject: [PATCH] Avoid extra warnings for PCB fields with spaces See #778 --- kibot/kiplot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kibot/kiplot.py b/kibot/kiplot.py index 1781919f3..2d03b7dbc 100644 --- a/kibot/kiplot.py +++ b/kibot/kiplot.py @@ -362,7 +362,8 @@ def expand_footprint_fields(fields, env): depth += 1 if depth == GS.MAXDEPTH: logger.warning(W_MAXDEPTH+'Too much nested variables replacements, possible loop ({})'.format(v)) - new_fields[k] = new_value + # Remove extra spaces as we did with the schematic values + new_fields[k] = new_value.strip() return new_fields