From ad4b98d8d10079f3bc753c27ad571454fc98fa80 Mon Sep 17 00:00:00 2001 From: Julien Nicoulaud Date: Thu, 31 Oct 2024 18:21:37 +0100 Subject: [PATCH] fix: fix console output formatting --- src/erc7730/common/output.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/erc7730/common/output.py b/src/erc7730/common/output.py index f4bebd8..544653c 100644 --- a/src/erc7730/common/output.py +++ b/src/erc7730/common/output.py @@ -116,7 +116,8 @@ def add(self, output: Output) -> None: context.append(f"{output.file}") if output.line is not None: context.append(f"line {output.line}") - log += ", ".join(context) + if context: + log += ", ".join(context) + ": " if output.title is not None: log += f"{output.title}: " log += f"[/{style}]{output.message}"