Skip to content

Commit

Permalink
fix: commit-formatter newline bug
Browse files Browse the repository at this point in the history
  • Loading branch information
katomaso committed Mar 6, 2024
1 parent 0fe145b commit d937776
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions gira/formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down

0 comments on commit d937776

Please sign in to comment.