diff --git a/src/wireviz/DataClasses.py b/src/wireviz/DataClasses.py index 1a113c1..89bff69 100644 --- a/src/wireviz/DataClasses.py +++ b/src/wireviz/DataClasses.py @@ -19,6 +19,7 @@ class Connector: subtype: Optional[str] = None pincount: Optional[int] = None image: Optional[str] = None + image_scale: Optional[str] = "FALSE" caption: Optional[str] = None notes: Optional[str] = None pinlabels: List[Any] = field(default_factory=list) @@ -94,6 +95,7 @@ class Cable: wirecount: Optional[int] = None shield: bool = False image: Optional[str] = None + image_scale: Optional[str] = "FALSE" caption: Optional[str] = None notes: Optional[str] = None colors: List[Any] = field(default_factory=list) diff --git a/src/wireviz/wv_helper.py b/src/wireviz/wv_helper.py index e185829..a91737e 100644 --- a/src/wireviz/wv_helper.py +++ b/src/wireviz/wv_helper.py @@ -56,7 +56,9 @@ def nested_html_table(rows): return html def html_image(node): - return f'''''' if node.image else None + if not node.image: + return None + return f'''''' def html_caption(node): return f'''{html_line_breaks(node.caption)}''' if node.caption else None