Move part number info directly below designator
(to be consistent with the changes proposed in #11)
This commit is contained in:
parent
6c7d700a1f
commit
11baf0f507
@ -86,10 +86,10 @@ class Harness:
|
|||||||
for key, connector in self.connectors.items():
|
for key, connector in self.connectors.items():
|
||||||
if connector.category == 'ferrule':
|
if connector.category == 'ferrule':
|
||||||
|
|
||||||
rows = [[html_line_breaks(connector.type), html_line_breaks(connector.subtype), connector.color, '<!-- colorbar -->' if connector.color else None],
|
rows = [[connector.manufacturer,
|
||||||
[connector.manufacturer,
|
|
||||||
f'MPN: {connector.manufacturer_part_number}' if connector.manufacturer_part_number else None,
|
f'MPN: {connector.manufacturer_part_number}' if connector.manufacturer_part_number else None,
|
||||||
f'IPN: {connector.internal_part_number}' if connector.internal_part_number else None],
|
f'IPN: {connector.internal_part_number}' if connector.internal_part_number else None],
|
||||||
|
[html_line_breaks(connector.type), html_line_breaks(connector.subtype), connector.color, '<!-- colorbar -->' if connector.color else None],
|
||||||
[html_line_breaks(connector.notes)]]
|
[html_line_breaks(connector.notes)]]
|
||||||
html = nested_html_table(rows)
|
html = nested_html_table(rows)
|
||||||
|
|
||||||
@ -102,14 +102,14 @@ class Harness:
|
|||||||
else: # not a ferrule
|
else: # not a ferrule
|
||||||
|
|
||||||
rows = [[connector.name if connector.show_name else None],
|
rows = [[connector.name if connector.show_name else None],
|
||||||
[html_line_breaks(connector.type),
|
|
||||||
html_line_breaks(connector.subtype),
|
|
||||||
f'{connector.pincount}-pin' if connector.show_pincount else None],
|
|
||||||
[connector.manufacturer,
|
[connector.manufacturer,
|
||||||
f'MPN: {connector.manufacturer_part_number}' if connector.manufacturer_part_number else None,
|
f'MPN: {connector.manufacturer_part_number}' if connector.manufacturer_part_number else None,
|
||||||
f'IPN: {connector.internal_part_number}' if connector.internal_part_number else None],
|
f'IPN: {connector.internal_part_number}' if connector.internal_part_number else None],
|
||||||
'<!-- connector table -->',
|
[html_line_breaks(connector.type),
|
||||||
[html_line_breaks(connector.notes)]]
|
html_line_breaks(connector.subtype),
|
||||||
|
f'{connector.pincount}-pin' if connector.show_pincount else None],
|
||||||
|
'<!-- connector table -->',
|
||||||
|
[html_line_breaks(connector.notes)]]
|
||||||
html = nested_html_table(rows)
|
html = nested_html_table(rows)
|
||||||
|
|
||||||
pinouts = []
|
pinouts = []
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user