From c5dd1e7a13dda1f63f22934576a39e75dbe4d932 Mon Sep 17 00:00:00 2001 From: Daniel Rojas Date: Mon, 20 Jul 2020 08:11:45 +0200 Subject: [PATCH] Simplify code --- src/wireviz/Harness.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wireviz/Harness.py b/src/wireviz/Harness.py index 59f7b12..db8106c 100644 --- a/src/wireviz/Harness.py +++ b/src/wireviz/Harness.py @@ -177,7 +177,7 @@ class Harness: if cable.show_name or len(attributes) > 0: html = f'{html}' # name+attributes table if cable.show_name: - html = '{html}'.format(html = html, colspan = len(attributes) if len(attributes) > 0 else 1, name = cable.name) + html = f'{html}' if(len(identification) > 0): # print an identification row if values specified html = f'{html}
{name}
{cable.name}
' for attrib in identification[0:-1]: