From a30d26e6af34338a6fc412724ae555bd8f6366df Mon Sep 17 00:00:00 2001 From: Daniel Rojas Date: Sun, 29 Aug 2021 11:02:49 +0200 Subject: [PATCH] Fix bug when checking for empty list Co-authored-by: kvid --- src/wireviz/wv_bom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wireviz/wv_bom.py b/src/wireviz/wv_bom.py index e203145..aa77501 100644 --- a/src/wireviz/wv_bom.py +++ b/src/wireviz/wv_bom.py @@ -169,7 +169,7 @@ def component_table_entry( output = (f'{qty}' + (f' {unit}' if unit else '') + f' x {type}' - + ('
' if any([part_number_list]) else '') + + ('
' if any(part_number_list) else '') + (', '.join([x for x in part_number_list if x]))) # 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