From 9dbf4538fd143061479754810497d7f4d0f1c519 Mon Sep 17 00:00:00 2001 From: Julien Lecoeur Date: Fri, 26 Nov 2021 16:05:04 +0100 Subject: [PATCH] Fix graphviz file header (#261) The two header comments were missing trailing newlines. This behavior is introduced by v0.18 of the graphviz Python package; where as v0.17 did include the newline automatically. Closes #258 --- src/wireviz/Harness.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wireviz/Harness.py b/src/wireviz/Harness.py index de7163a2..da4f2bfd 100644 --- a/src/wireviz/Harness.py +++ b/src/wireviz/Harness.py @@ -151,8 +151,8 @@ def connect( def create_graph(self) -> Graph: dot = Graph() - dot.body.append(f"// Graph generated by {APP_NAME} {__version__}") - dot.body.append(f"// {APP_URL}") + dot.body.append(f"// Graph generated by {APP_NAME} {__version__}\n") + dot.body.append(f"// {APP_URL}\n") dot.attr( "graph", rankdir="LR",