Move part number info directly below designator

(to be consistent with the changes proposed in #11)
This commit is contained in:
Daniel Rojas 2020-07-05 22:11:39 +02:00
parent 6c7d700a1f
commit 11baf0f507

View File

@ -86,10 +86,10 @@ class Harness:
for key, connector in self.connectors.items():
if connector.category == 'ferrule':
rows = [[html_line_breaks(connector.type), html_line_breaks(connector.subtype), connector.color, '<!-- colorbar -->' if connector.color else None],
[connector.manufacturer,
rows = [[connector.manufacturer,
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],
[html_line_breaks(connector.type), html_line_breaks(connector.subtype), connector.color, '<!-- colorbar -->' if connector.color else None],
[html_line_breaks(connector.notes)]]
html = nested_html_table(rows)
@ -102,14 +102,14 @@ class Harness:
else: # not a ferrule
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,
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],
'<!-- connector table -->',
[html_line_breaks(connector.notes)]]
[html_line_breaks(connector.type),
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)
pinouts = []