From d937776cdc69d16fdbd298962296d103f845438a Mon Sep 17 00:00:00 2001 From: Tomas Peterka Date: Wed, 6 Mar 2024 10:29:53 +0100 Subject: [PATCH] fix: commit-formatter newline bug --- gira/formatter.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gira/formatter.py b/gira/formatter.py index ffd4458..ca7dc14 100644 --- a/gira/formatter.py +++ b/gira/formatter.py @@ -36,11 +36,10 @@ def print(self, upgrade: Upgrade, tickets: Iterable[Ticket]): if chars > 72: chars += self._stream.write(sep.strip()) self._stream.write("\n ") - sep = "" # no separator after newline chars = 0 - else: - chars += self._stream.write(sep) - sep = ", " + sep = "" # no separator after newline + chars += self._stream.write(sep) + sep = ", " chars += self._stream.write(ticket.name)