Remove vertical separators in BOM table
This commit is contained in:
parent
f928bc73ca
commit
aaf88d7601
@ -38,7 +38,13 @@ def get_additional_component_table(harness: "Harness", component: Union[Connecto
|
|||||||
columns.append(f'{manufacturer_str}' if manufacturer_str else '')
|
columns.append(f'{manufacturer_str}' if manufacturer_str else '')
|
||||||
columns.append(f'{part.note}' if part.note else '')
|
columns.append(f'{part.note}' if part.note else '')
|
||||||
|
|
||||||
rowstr = '\n <tr>\n' + ''.join([f' <td align="left" balign="left">{html_line_breaks(col)}</td>\n' for col in columns]) + ' </tr>'
|
# TODO: Remove empty columns
|
||||||
|
|
||||||
|
rowstr = '\n <tr>\n'
|
||||||
|
for index, column in enumerate(columns):
|
||||||
|
sides = "tbl" if index == 0 else "tbr" if index == len(columns) -1 else "tb"
|
||||||
|
rowstr = rowstr + f' <td align="left" balign="left" sides="{sides}">{html_line_breaks(column)}</td>\n'
|
||||||
|
rowstr = rowstr + ' </tr>'
|
||||||
rows.append(rowstr)
|
rows.append(rowstr)
|
||||||
|
|
||||||
pre = '<table border="0" cellspacing="0" cellpadding="3" cellborder="1">'
|
pre = '<table border="0" cellspacing="0" cellpadding="3" cellborder="1">'
|
||||||
|
|||||||
9
test/bomnumbertest.bom.tsv
generated
Normal file
9
test/bomnumbertest.bom.tsv
generated
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
Id Item Qty Unit Designators P/N Manufacturer MPN
|
||||||
|
1 Cable, 4 x 0.25 mm² 99 m W1 qwerty uiop
|
||||||
|
2 Connector, Plug, 4 pins 1 X1 123 ACME ABC
|
||||||
|
3 Connector, Receptacle, 4 pins 1 X2 234 ACME DEF
|
||||||
|
4 Crimp 1 X2 876 ACME WVU
|
||||||
|
5 Crimp 4 X1 987 ACME ZYX
|
||||||
|
6 Housing 1 X1 345 OTHER
|
||||||
|
7 Label 1 X1
|
||||||
|
8 Sleeving 5 m W1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user