diff --git a/src/wireviz/Harness.py b/src/wireviz/Harness.py
index 1d5a79c..37a8043 100644
--- a/src/wireviz/Harness.py
+++ b/src/wireviz/Harness.py
@@ -60,10 +60,11 @@ class Harness:
for key, connector in self.connectors.items():
if connector.category == 'ferrule':
- rows = [[connector.type, connector.subtype, connector.color, '' if connector.color else None],
+ rows = [[html_line_breaks(connector.type), html_line_breaks(connector.subtype), connector.color, '' if connector.color 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]]
+ f'IPN: {connector.internal_part_number}' if connector.internal_part_number else None],
+ [html_line_breaks(connector.notes)]]
rows = [list(filter(None, row)) for row in rows] # remove missing attributes
html = '
'
@@ -71,13 +72,13 @@ class Harness:
if len(row) > 0:
html = f'{html}'
for cell in row:
- html = f'{html}| {cell} | '
+ html = f'{html}{cell} | '
html = f'{html}
|
'
html = f'{html}
'
if connector.color: # add color bar next to color info, if present
- colorbar = f' | '
- html = html.replace(' | ', colorbar)
+ colorbar = f' bgcolor="{wv_colors.translate_color(connector.color, "HEX")}" width="4">' # leave out ' tag
+ html = html.replace('> | ', colorbar)
dot.node(key, label=f'<{html}>', shape='none', margin='0', style='filled', fillcolor='white')