diff --git a/src/wireviz/wv_bom.py b/src/wireviz/wv_bom.py
index f281786..bd7aede 100644
--- a/src/wireviz/wv_bom.py
+++ b/src/wireviz/wv_bom.py
@@ -174,17 +174,18 @@ def component_table_entry(
+ (f' {unit}' if unit else '')
+ f' x {type}'
+ ('
' if any(part_number_list) else '')
- + (', '.join([x for x in part_number_list if x])))
+ + (', '.join([pn for pn in part_number_list if pn])))
# format the above output as left aligned text in a single visible cell
# indent is set to two to match the indent in the generated html table
return f'''
| {html_line_breaks(output)} |